Skip to content

Commit 1d56121

Browse files
authored
Secret KEY invalid yaZebi
1 parent 06de473 commit 1d56121

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

charts/postgres-backup-local/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ Name of the key in Secret that contains the PostgreSQL password
7070
{{- if .Values.auth.existingSecret -}}
7171
{{- .Values.auth.existingSecretPasswordKey -}}
7272
{{- else -}}
73-
POSTGRES_PASSWORD
73+
postgresql-password
7474
{{- end -}}
7575
{{- end }}

charts/postgres-backup-local/templates/secrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ metadata:
77
{{- include "postgres-backup-local.labels" . | nindent 4 }}
88
type: Opaque
99
stringData:
10-
POSTGRES_PASSWORD: {{ .Values.auth.postgres_password }}
10+
postgresql-password: {{ .Values.auth.postgres_password }}
1111
{{ end }}

charts/postgres-backup-local/templates/statefulset.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ spec:
3333
subPath: .Values.persistence.subPath
3434
{{- end }}
3535
env:
36-
- name: POSTGRES_PASSWORD
37-
valueFrom:
38-
secretKeyRef:
39-
key: {{ include "postgres-backup-local.secret" . | quote }}
40-
name: {{ include "postgres-backup-local.secretPasswordKey" . | quote }}
36+
- name: POSTGRES_PASSWORD
37+
valueFrom:
38+
secretKeyRef:
39+
name: {{ include "postgres-backup-local.secret" . | quote }}
40+
key: {{ include "postgres-backup-local.secretPasswordKey" . | quote }}
4141
envFrom:
4242
- configMapRef:
4343
name: {{ include "postgres-backup-local.fullname" . }}

0 commit comments

Comments
 (0)