mirror of
https://github.com/Thumbscrew/k8s-charts.git
synced 2025-07-02 19:09:03 +00:00
fix: missing postgres password when using existing secret in tandoor-recipes (#53)
This commit is contained in:
@ -46,8 +46,18 @@ spec:
|
||||
value: {{ include "tandoor-recipes.postgresql.port" . | quote }}
|
||||
- name: POSTGRES_USER
|
||||
value: {{ include "tandoor-recipes.postgresql.username" . }}
|
||||
{{- if or .Values.postgresql.enabled .Values.externalPostgresql.existingSecret }}
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: {{ include "tandoor-recipes.postgresql.password" . }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
name: {{ .Values.postgresql.existingSecret | default (include "tandoor-recipes.postgresql.fullname" .) }}
|
||||
key: password
|
||||
{{- else }}
|
||||
name: {{ .Values.externalPostgresql.existingSecret }}
|
||||
key: {{ .Values.externalPostgresql.existingSecretPasswordKey }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- name: POSTGRES_DB
|
||||
value: {{ include "tandoor-recipes.postgresql.database" . }}
|
||||
- name: SECRET_KEY
|
||||
|
Reference in New Issue
Block a user