diff --git a/charts/firefly-db/templates/backup.tpl b/charts/firefly-db/templates/backup.tpl index ca1ead7..96079d0 100644 --- a/charts/firefly-db/templates/backup.tpl +++ b/charts/firefly-db/templates/backup.tpl @@ -5,8 +5,13 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: IfNotPresent envFrom: + {{- if not .Values.configs.existingSecret }} - configMapRef: name: {{ template "firefly-db.fullname" . }}-config + {{- else }} + - secretRef: + name: {{ .Values.configs.existingSecret }} + {{- end }} command: - /bin/sh - -c