From 21e072d246239fd762a70135aeb7067df31c1fba Mon Sep 17 00:00:00 2001 From: Fraser Nevett Date: Fri, 20 Apr 2018 22:09:26 +0100 Subject: [PATCH] Quote hostnames in default ingress YAML Wildcard hostnames such as *.example.com break the default ingress because YAML treats elements starting with an asterisk specially. The values therefore need to be quoted in order to be recognised as strings. --- pkg/chartutil/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 4c6b484a9..30c6310b2 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -143,14 +143,14 @@ spec: {{- range .Values.ingress.tls }} - hosts: {{- range .hosts }} - - {{ . }} + - {{ . | quote }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range .Values.ingress.hosts }} - - host: {{ . }} + - host: {{ . | quote }} http: paths: - path: {{ $ingressPath }}