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 }} {{- range .Values.ingress.tls }}
- hosts: - hosts:
{{- range .hosts }} {{- range .hosts }}
- {{ . }} - {{ . | quote }}
{{- end }} {{- end }}
secretName: {{ .secretName }} secretName: {{ .secretName }}
{{- end }} {{- end }}
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ . }} - host: {{ . | quote }}
http: http:
paths: paths:
- path: {{ $ingressPath }} - path: {{ $ingressPath }}

Loading…
Cancel
Save