From 26a17372cf77460e2abd1888ed42251332009fd9 Mon Sep 17 00:00:00 2001 From: hadams95 Date: Mon, 18 Mar 2024 16:13:42 -0400 Subject: [PATCH] adjust values --- helm/common/templates/_db_setup_job.tpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/helm/common/templates/_db_setup_job.tpl b/helm/common/templates/_db_setup_job.tpl index c0bf9c45..38313dc1 100644 --- a/helm/common/templates/_db_setup_job.tpl +++ b/helm/common/templates/_db_setup_job.tpl @@ -59,10 +59,10 @@ spec: name: {{ .Release.Name }}-postgresql key: postgres-password optional: false - {{- else if .Values.postgres.externalSecret }} + {{- else if .Values.externalSecrets.dbcreds }} valueFrom: secretKeyRef: - name: {{ .Values.postgres.externalSecret }} + name: {{ .Values.externalSecrets.dbcreds }} key: password optional: false {{- else if $.Values.global.postgres.externalSecret }} @@ -75,10 +75,10 @@ spec: value: {{ .Values.global.postgres.master.password | quote}} {{- end }} - name: PGUSER - {{- if .Values.postgres.externalSecret }} + {{- if .Values.externalSecrets.dbcreds }} valueFrom: secretKeyRef: - name: {{ .Values.postgres.externalSecret }} + name: {{ .Values.externalSecrets.dbcreds }} key: username optional: false {{- else if $.Values.global.postgres.externalSecret }} @@ -91,10 +91,10 @@ spec: value: {{ .Values.global.postgres.master.username | quote }} {{- end }} - name: PGPORT - {{- if .Values.postgres.externalSecret }} + {{- if .Values.externalSecrets.dbcreds }} valueFrom: secretKeyRef: - name: {{ .Values.postgres.externalSecret }} + name: {{ .Values.externalSecrets.dbcreds }} key: port optional: false {{- else if $.Values.global.postgres.externalSecret }} @@ -109,10 +109,10 @@ spec: - name: PGHOST {{- if $.Values.global.dev }} value: "{{ .Release.Name }}-postgresql" - {{- else if .Values.postgres.externalSecret }} + {{- else if .Values.externalSecrets.dbcreds }} valueFrom: secretKeyRef: - name: {{ .Values.postgres.externalSecret }} + name: {{ .Values.externalSecrets.dbcreds }} key: host optional: false {{- else if $.Values.global.postgres.externalSecret }}