Fix YAML parsing error in deployment template

- Add whitespace control (-) to postgresql.passwordKey helper
- Prevents newline being inserted in secretKeyRef key value
This commit is contained in:
Mondo Diaz
2025-12-05 16:08:01 -06:00
parent 3581e6c629
commit a7745be2aa

View File

@@ -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 }}
{{/*