[bitnami/mongodb] fix: Use correct values in cronjob.annotations (#21717)

* [bitnami/mongodb] fix: Use correct values in cronjob.annotations

Signed-off-by: Erwin Schliske <erwin.schliske@milecrew.com>

* [bitnami/mongodb] fix: add securityContext for backup pod

Without the securityContext mongodump fails with permission
denied, when trying to write the dump file.

Signed-off-by: Erwin Schliske <erwin.schliske@milecrew.com>

* Bump chart version

Signed-off-by: Fran Mulero <fmulero@vmware.com>

---------

Signed-off-by: Erwin Schliske <erwin.schliske@milecrew.com>
Signed-off-by: Fran Mulero <fmulero@vmware.com>
Co-authored-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Erwin Schliske
2023-12-26 08:31:22 +01:00
committed by GitHub
parent 906ba2089e
commit 3f38e0ac93
2 changed files with 5 additions and 2 deletions

View File

@@ -39,4 +39,4 @@ maintainers:
name: mongodb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb
version: 14.4.6
version: 14.4.7

View File

@@ -49,7 +49,7 @@ spec:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 12 }}
{{- end }}
{{- if or .Values.annotations .Values.commonAnnotations }}
{{- if or .Values.backup.cronjob.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.backup.cronjob.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.backup.cronjob.annotations "context" $) | nindent 12 }}
@@ -59,6 +59,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.podSecurityContext.enabled }}
securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
enableServiceLinks: {{ .Values.enableServiceLinks }}
{{- if .Values.tls.enabled }}
initContainers: