From 6ccfe159f59e1b5063e3622d48168e2ad3c40ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Su=C3=A1rez=20Fern=C3=A1ndez?= <15276132+vicsufer@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:24:16 +0100 Subject: [PATCH] DB Backup job should use same credentials as DB --- charts/firefly-db/templates/backup.tpl | 5 +++++ 1 file changed, 5 insertions(+) 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