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:
2025-12-05 16:08:01 -06:00
parent eebcfa4cc0
commit 808d085a4a

View File

@@ -87,13 +87,13 @@ PostgreSQL secret name
PostgreSQL password key in secret PostgreSQL password key in secret
*/}} */}}
{{- define "orchard.postgresql.passwordKey" -}} {{- define "orchard.postgresql.passwordKey" -}}
{{- if .Values.orchard.database.existingSecret }} {{- if .Values.orchard.database.existingSecret -}}
{{- .Values.orchard.database.existingSecretPasswordKey }} {{- .Values.orchard.database.existingSecretPasswordKey -}}
{{- else if .Values.postgresql.enabled }} {{- else if .Values.postgresql.enabled -}}
password password
{{- else }} {{- else -}}
password password
{{- end }} {{- end -}}
{{- end }} {{- end }}
{{/* {{/*