corrected annotations range print indentation for charts/nginx/templates/ingress.yaml
requested to merge LUSHDigital/helm.gitlab.io:correct-charts/nginx/templates/ingress.yaml-indentation into master
annotations:
kubernetes.io/ingress.class: "nginx"
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Was resulting in output like:
annotations:
kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/proxy-body-size: "1024M"
This is causing error converting YAML to JSON: yaml: line 11: did not find expected key
, as {{ $key }}: {{ $value | quote }}
is indented too far. I've moved it back.