Fix YAML parsing error in deployment template

- Add whitespace control (-) to postgresql.passwordKey helper
- Prevents newline being inserted in secretKeyRef key value

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-05 16:08:01 -06:00
parent ca91c8d29c
commit a84ce88ca1

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