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
This commit is contained in:
Matt Lauber 2022-09-30 11:06:29 -04:00 committed by GitHub
parent 8f18c0f973
commit dacb8da058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccount.annotations }} {{- if .Values.serviceAccount.annotations }}
annotations: annotations:
{{ toYaml .Values.serviceAccount.annotations | indent 4 }} {{- toYaml .Values.serviceAccount.annotations | indent 4 }}
{{- end }} {{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{- end }} {{- end }}