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.
pull/3935/head
Fraser Nevett 8 years ago committed by GitHub
parent f201db3fc2
commit 21e072d246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 }}

Loading…
Cancel
Save