diff --git a/bitnami/mongodb/CHANGELOG.md b/bitnami/mongodb/CHANGELOG.md index c25f1e11f9e640..2c9e4bbf1f1f86 100644 --- a/bitnami/mongodb/CHANGELOG.md +++ b/bitnami/mongodb/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 15.6.22 (2024-08-27) +## 15.6.23 (2024-09-11) -* [bitnami/mongodb] add securityContext via helper to initContainter dns-check ([#29038](https://github.com/bitnami/charts/pull/29038)) +* [bitnami/mongodb] Allow rendering resources values ([#29346](https://github.com/bitnami/charts/pull/29346)) + +## 15.6.22 (2024-08-29) + +* [bitnami/mongodb] add securityContext via helper to initContainter dns-check (#29038) ([56299fe](https://github.com/bitnami/charts/commit/56299fe14d54ac685fb55da7d23c6b91c15f8e3e)), closes [#29038](https://github.com/bitnami/charts/issues/29038) ## 15.6.21 (2024-08-26) diff --git a/bitnami/mongodb/Chart.yaml b/bitnami/mongodb/Chart.yaml index f692e4572c329c..fb263a025d2a33 100644 --- a/bitnami/mongodb/Chart.yaml +++ b/bitnami/mongodb/Chart.yaml @@ -39,4 +39,4 @@ maintainers: name: mongodb sources: - https://github.com/bitnami/charts/tree/main/bitnami/mongodb -version: 15.6.22 +version: 15.6.23 diff --git a/bitnami/mongodb/templates/arbiter/statefulset.yaml b/bitnami/mongodb/templates/arbiter/statefulset.yaml index ab750fcd5eaeff..e786b818af1414 100644 --- a/bitnami/mongodb/templates/arbiter/statefulset.yaml +++ b/bitnami/mongodb/templates/arbiter/statefulset.yaml @@ -243,7 +243,7 @@ spec: {{- end }} {{- end }} {{- if .Values.arbiter.resources }} - resources: {{- toYaml .Values.arbiter.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.arbiter.resources "context" $) | nindent 12 }} {{- else if ne .Values.arbiter.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.arbiter.resourcesPreset) | nindent 12 }} {{- end }} diff --git a/bitnami/mongodb/templates/backup/cronjob.yaml b/bitnami/mongodb/templates/backup/cronjob.yaml index 3e8972c75a75d6..1411b1a6c43969 100644 --- a/bitnami/mongodb/templates/backup/cronjob.yaml +++ b/bitnami/mongodb/templates/backup/cronjob.yaml @@ -107,7 +107,7 @@ spec: - -n {{ join "," ( concat .Values.tls.extraDnsNames .Values.externalAccess.service.publicNames ) }} {{- end }} {{- if .Values.tls.resources }} - resources: {{- toYaml .Values.tls.resources | nindent 16 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.tls.resources "context" $) | nindent 12 }} {{- else if ne .Values.tls.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.tls.resourcesPreset) | nindent 16 }} {{- end }} diff --git a/bitnami/mongodb/templates/hidden/statefulset.yaml b/bitnami/mongodb/templates/hidden/statefulset.yaml index e64777628a5e26..33824d58a6ff70 100644 --- a/bitnami/mongodb/templates/hidden/statefulset.yaml +++ b/bitnami/mongodb/templates/hidden/statefulset.yaml @@ -142,7 +142,7 @@ spec: - -n {{ join "," ( concat .Values.tls.extraDnsNames .Values.externalAccess.service.publicNames ) }} {{- end }} {{- if .Values.tls.resources }} - resources: {{- toYaml .Values.tls.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.tls.resources "context" $) | nindent 12 }} {{- else if ne .Values.tls.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.tls.resourcesPreset) | nindent 12 }} {{- end }} @@ -320,7 +320,7 @@ spec: {{- end }} {{- end }} {{- if .Values.hidden.resources }} - resources: {{- toYaml .Values.hidden.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.hidden.resources "context" $) | nindent 12 }} {{- else if ne .Values.hidden.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.hidden.resourcesPreset) | nindent 12 }} {{- end }} @@ -455,7 +455,7 @@ spec: {{- end }} {{- end }} {{- if .Values.metrics.resources }} - resources: {{- toYaml .Values.metrics.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.resources "context" $) | nindent 12 }} {{- else if ne .Values.metrics.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.metrics.resourcesPreset) | nindent 12 }} {{- end }} diff --git a/bitnami/mongodb/templates/replicaset/statefulset.yaml b/bitnami/mongodb/templates/replicaset/statefulset.yaml index ad111e519c877f..c0ccc9cd6988ae 100644 --- a/bitnami/mongodb/templates/replicaset/statefulset.yaml +++ b/bitnami/mongodb/templates/replicaset/statefulset.yaml @@ -143,7 +143,7 @@ spec: - -n {{ join "," ( concat .Values.tls.extraDnsNames .Values.externalAccess.service.publicNames ) }} {{- end }} {{- if .Values.tls.resources }} - resources: {{- toYaml .Values.tls.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.tls.resources "context" $) | nindent 12 }} {{- else if ne .Values.tls.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.tls.resourcesPreset) | nindent 12 }} {{- end }} @@ -320,7 +320,7 @@ spec: {{- end }} {{- end }} {{- if .Values.resources }} - resources: {{- toYaml .Values.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.resources "context" $) | nindent 12 }} {{- else if ne .Values.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }} {{- end }} @@ -457,7 +457,7 @@ spec: {{- end }} {{- end }} {{- if .Values.metrics.resources }} - resources: {{- toYaml .Values.metrics.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.resources "context" $) | nindent 12 }} {{- else if ne .Values.metrics.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.metrics.resourcesPreset) | nindent 12 }} {{- end }} diff --git a/bitnami/mongodb/templates/standalone/dep-sts.yaml b/bitnami/mongodb/templates/standalone/dep-sts.yaml index 9c0dca66114048..fdf55f2312625c 100644 --- a/bitnami/mongodb/templates/standalone/dep-sts.yaml +++ b/bitnami/mongodb/templates/standalone/dep-sts.yaml @@ -130,7 +130,7 @@ spec: - -n {{ join "," ( concat .Values.tls.extraDnsNames .Values.externalAccess.service.publicNames ) }} {{- end }} {{- if .Values.tls.resources }} - resources: {{- toYaml .Values.tls.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.tls.resources "context" $) | nindent 12 }} {{- else if ne .Values.tls.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.tls.resourcesPreset) | nindent 12 }} {{- end }} @@ -277,7 +277,7 @@ spec: {{- end }} {{- end }} {{- if .Values.resources }} - resources: {{- toYaml .Values.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.resources "context" $) | nindent 12 }} {{- else if ne .Values.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }} {{- end }} @@ -402,7 +402,7 @@ spec: {{- end }} {{- end }} {{- if .Values.metrics.resources }} - resources: {{- toYaml .Values.metrics.resources | nindent 12 }} + resources: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.resources "context" $) | nindent 12 }} {{- else if ne .Values.metrics.resourcesPreset "none" }} resources: {{- include "common.resources.preset" (dict "type" .Values.metrics.resourcesPreset) | nindent 12 }} {{- end }}