diff --git a/helm/orchard/templates/_helpers.tpl b/helm/orchard/templates/_helpers.tpl index f577d5c..847ed56 100644 --- a/helm/orchard/templates/_helpers.tpl +++ b/helm/orchard/templates/_helpers.tpl @@ -87,13 +87,13 @@ PostgreSQL secret name PostgreSQL password key in secret */}} {{- define "orchard.postgresql.passwordKey" -}} -{{- if .Values.orchard.database.existingSecret }} -{{- .Values.orchard.database.existingSecretPasswordKey }} -{{- else if .Values.postgresql.enabled }} +{{- if .Values.orchard.database.existingSecret -}} +{{- .Values.orchard.database.existingSecretPasswordKey -}} +{{- else if .Values.postgresql.enabled -}} password -{{- else }} +{{- else -}} password -{{- end }} +{{- end -}} {{- end }} {{/*