[bitnami/influxdb] Fix a bug when backup.enabled is true (#23598)

* fix when backup.enabled=true

Signed-off-by: Kyuwan Kim <kwkimg3100@gmail.com>

* version up

Signed-off-by: Kyuwan Kim <kwkimg3100@gmail.com>

---------

Signed-off-by: Kyuwan Kim <kwkimg3100@gmail.com>
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
poliphilson
2024-02-21 21:44:04 +09:00
committed by GitHub
parent dfbfb77903
commit 33cb0d399a
2 changed files with 2 additions and 5 deletions

View File

@@ -37,4 +37,4 @@ maintainers:
name: influxdb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/influxdb
version: 5.16.0
version: 5.16.1

View File

@@ -27,10 +27,7 @@ spec:
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.backup.cronjob.podAnnotations "context" $) | nindent 12 }}
{{- end }}
spec:
{{- if .Values.backup.cronjob.securityContext.enabled }}
# Deprecated, use backup.cronjob.podSecurityContext
securityContext: {{- omit .Values.backup.cronjob.securityContext "enabled" | toYaml | nindent 12 }}
{{- else if .Values.backup.cronjob.podSecurityContext.enabled }}
{{- if .Values.backup.cronjob.podSecurityContext.enabled }}
securityContext: {{- omit .Values.backup.cronjob.podSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
restartPolicy: OnFailure