From 7d1c052a96d696ef134bf71c05b83ebed41edab0 Mon Sep 17 00:00:00 2001 From: thamudi Date: Sun, 6 Oct 2024 12:48:08 +0300 Subject: [PATCH] fix(jobs): replace configmap and secret ref with a default value --- templates/job-create-gpg.yaml | 4 ++-- templates/job-create-jwt.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/job-create-gpg.yaml b/templates/job-create-gpg.yaml index 2ea8f64..98bdcb3 100644 --- a/templates/job-create-gpg.yaml +++ b/templates/job-create-gpg.yaml @@ -83,9 +83,9 @@ spec: {{- end }} envFrom: - configMapRef: - name: {{ $Name }}-cm-env + name: {{ default (printf "%s-cm-env" $Name) .Values.passboltEnv.configMapName }} - secretRef: - name: {{ $Name }}-sec-env + name: {{ default (printf "%s-sec-env" $Name) .Values.passboltEnv.secretName }} {{- with .Values.passboltEnv.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} diff --git a/templates/job-create-jwt.yaml b/templates/job-create-jwt.yaml index 456fd23..2dbbed1 100644 --- a/templates/job-create-jwt.yaml +++ b/templates/job-create-jwt.yaml @@ -61,9 +61,9 @@ spec: {{- end }} envFrom: - configMapRef: - name: {{ $Name }}-cm-env + name: {{ default (printf "%s-cm-env" $Name) .Values.passboltEnv.configMapName }} - secretRef: - name: {{ $Name }}-sec-env + name: {{ default (printf "%s-sec-env" $Name) .Values.passboltEnv.secretName }} {{- with .Values.passboltEnv.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }}