fix(chart): render extraDeploy document separators lint-clean

This commit is contained in:
Thibault VINCENT
2026-08-05 19:14:52 +02:00
committed by Thibault VINCENT
parent b2a973e598
commit 647ce98f16
+17 -10
View File
@@ -1,16 +1,23 @@
{{/*
Each entry renders as its own YAML document. The document separator
must be followed by a real newline: `{{-` on the emitting action would
chomp it and glue the manifest onto `---` (helm template/install paper
over that by re-splitting documents, but helm lint parses the raw
stream and rejects it).
*/}}
{{- range .Values.extraDeploy }}
---
{{- if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (. | toYaml) $ }}
{{- end }}
{{ if typeIs "string" . -}}
{{ tpl . $ }}
{{- else -}}
{{ tpl (. | toYaml) $ }}
{{- end }}
{{- end }}
{{- range .Values.extraDeployVerbatim }}
---
{{- if typeIs "string" . }}
{{- . }}
{{- else }}
{{- . | toYaml }}
{{- end }}
{{ if typeIs "string" . -}}
{{ . }}
{{- else -}}
{{ . | toYaml }}
{{- end }}
{{- end }}