Skip to content

Commit dacb8da

Browse files
authored
Fix yaml formatting error with multiple annotations (#9104)
When using multiple values for the `serviceAccount.annotations` values, the first line ends up indented 2 further than the following lines, resulting in a invalid yaml
1 parent 8f18c0f commit dacb8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/ingress-nginx/templates/controller-serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
namespace: {{ .Release.Namespace }}
1313
{{- if .Values.serviceAccount.annotations }}
1414
annotations:
15-
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
15+
{{- toYaml .Values.serviceAccount.annotations | indent 4 }}
1616
{{- end }}
1717
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
1818
{{- end }}

0 commit comments

Comments
 (0)