From a84ce88ca1acb59ef9754ef2922cae7e89042484 Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Fri, 5 Dec 2025 16:08:01 -0600 Subject: [PATCH] Fix YAML parsing error in deployment template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- helm/orchard/templates/_helpers.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }} {{/*