Skip to content

Commit

Permalink
Merge pull request #221 from RADAR-base/version/update-mongodb
Browse files Browse the repository at this point in the history
[mongodb] Update mongodb to 7.0.12
  • Loading branch information
keyvaann authored Jul 17, 2024
2 parents 055474e + 3a8df94 commit 1e07a5c
Show file tree
Hide file tree
Showing 60 changed files with 4,126 additions and 2,086 deletions.
4 changes: 4 additions & 0 deletions external/mongodb/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
.project
.idea/
*.tmproj
# img folder
img/
# Changelog
CHANGELOG.md
27 changes: 19 additions & 8 deletions external/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
annotations:
category: Database
images: |
- name: kubectl
image: docker.io/bitnami/kubectl:1.30.2-debian-12-r0
- name: mongodb
image: docker.io/bitnami/mongodb:7.0.12-debian-12-r0
- name: mongodb-exporter
image: docker.io/bitnami/mongodb-exporter:0.40.0-debian-12-r30
- name: nginx
image: docker.io/bitnami/nginx:1.27.0-debian-12-r2
- name: os-shell
image: docker.io/bitnami/os-shell:12-debian-12-r23
licenses: Apache-2.0
apiVersion: v2
appVersion: 4.4.13
appVersion: 7.0.12
dependencies:
- name: common
repository: https://radar-base.github.io/radar-helm-charts
tags:
- bitnami-common
version: 1.13.1
version: 2.x.x
description: MongoDB(R) is a relational open source NoSQL database. Easy to use, it
stores data in JSON-like documents. Automated scalability and high-performance.
Ideal for developing cloud native applications.
home: https://github.com/bitnami/charts/tree/master/bitnami/mongodb
home: https://bitnami.com
icon: https://bitnami.com/assets/stacks/mongodb/img/mongodb-stack-220x234.png
keywords:
- mongodb
Expand All @@ -21,10 +33,9 @@ keywords:
- replicaset
- replication
maintainers:
- email: containers@bitnami.com
name: Bitnami
- name: Broadcom, Inc. All Rights Reserved.
url: https://github.com/bitnami/charts
name: mongodb
sources:
- https://github.com/bitnami/bitnami-docker-mongodb
- https://mongodb.org
version: 11.1.10
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb
version: 15.6.12
1,402 changes: 946 additions & 456 deletions external/mongodb/README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions external/mongodb/charts/common/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
.idea/
*.tmproj
.vscode/
# img folder
img/
# Changelog
CHANGELOG.md
14 changes: 7 additions & 7 deletions external/mongodb/charts/common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
annotations:
category: Infrastructure
licenses: Apache-2.0
apiVersion: v2
appVersion: 1.13.0
appVersion: 2.20.3
description: A Library Helm Chart for grouping common logic between bitnami charts.
This chart is not deployable by itself.
home: https://github.com/bitnami/charts/tree/master/bitnami/common
home: https://bitnami.com
icon: https://bitnami.com/downloads/logos/bitnami-mark.png
keywords:
- common
Expand All @@ -13,11 +14,10 @@ keywords:
- function
- bitnami
maintainers:
- email: containers@bitnami.com
name: Bitnami
- name: Broadcom, Inc. All Rights Reserved.
url: https://github.com/bitnami/charts
name: common
sources:
- https://github.com/bitnami/charts
- https://www.bitnami.com/
- https://github.com/bitnami/charts/tree/main/bitnami/common
type: library
version: 1.13.0
version: 2.20.3
154 changes: 21 additions & 133 deletions external/mongodb/charts/common/README.md

Large diffs are not rendered by default.

59 changes: 48 additions & 11 deletions external/mongodb/charts/common/templates/_affinities.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{{/*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

{{/* vim: set filetype=mustache: */}}

{{/*
Return a soft nodeAffinity definition
Return a soft nodeAffinity definition
{{ include "common.affinities.nodes.soft" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}}
*/}}
{{- define "common.affinities.nodes.soft" -}}
Expand Down Expand Up @@ -45,48 +50,80 @@ Return a nodeAffinity definition
{{- end -}}
{{- end -}}

{{/*
Return a topologyKey definition
{{ include "common.affinities.topologyKey" (dict "topologyKey" "BAR") -}}
*/}}
{{- define "common.affinities.topologyKey" -}}
{{ .topologyKey | default "kubernetes.io/hostname" -}}
{{- end -}}

{{/*
Return a soft podAffinity/podAntiAffinity definition
{{ include "common.affinities.pods.soft" (dict "component" "FOO" "extraMatchLabels" .Values.extraMatchLabels "context" $) -}}
{{ include "common.affinities.pods.soft" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "context" $) -}}
*/}}
{{- define "common.affinities.pods.soft" -}}
{{- $component := default "" .component -}}
{{- $customLabels := default (dict) .customLabels -}}
{{- $extraMatchLabels := default (dict) .extraMatchLabels -}}
{{- $extraPodAffinityTerms := default (list) .extraPodAffinityTerms -}}
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 10 }}
matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" .context )) | nindent 10 }}
{{- if not (empty $component) }}
{{ printf "app.kubernetes.io/component: %s" $component }}
{{- end }}
{{- range $key, $value := $extraMatchLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
namespaces:
- {{ .context.Release.Namespace | quote }}
topologyKey: kubernetes.io/hostname
topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }}
weight: 1
{{- range $extraPodAffinityTerms }}
- podAffinityTerm:
labelSelector:
matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" $.context )) | nindent 10 }}
{{- if not (empty $component) }}
{{ printf "app.kubernetes.io/component: %s" $component }}
{{- end }}
{{- range $key, $value := .extraMatchLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }}
weight: {{ .weight | default 1 -}}
{{- end -}}
{{- end -}}

{{/*
Return a hard podAffinity/podAntiAffinity definition
{{ include "common.affinities.pods.hard" (dict "component" "FOO" "extraMatchLabels" .Values.extraMatchLabels "context" $) -}}
{{ include "common.affinities.pods.hard" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "context" $) -}}
*/}}
{{- define "common.affinities.pods.hard" -}}
{{- $component := default "" .component -}}
{{- $customLabels := default (dict) .customLabels -}}
{{- $extraMatchLabels := default (dict) .extraMatchLabels -}}
{{- $extraPodAffinityTerms := default (list) .extraPodAffinityTerms -}}
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 8 }}
matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" .context )) | nindent 8 }}
{{- if not (empty $component) }}
{{ printf "app.kubernetes.io/component: %s" $component }}
{{- end }}
{{- range $key, $value := $extraMatchLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
namespaces:
- {{ .context.Release.Namespace | quote }}
topologyKey: kubernetes.io/hostname
topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }}
{{- range $extraPodAffinityTerms }}
- labelSelector:
matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" $.context )) | nindent 8 }}
{{- if not (empty $component) }}
{{ printf "app.kubernetes.io/component: %s" $component }}
{{- end }}
{{- range $key, $value := .extraMatchLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }}
{{- end -}}
{{- end -}}

{{/*
Expand Down
Loading

0 comments on commit 1e07a5c

Please sign in to comment.