Fix serviceAccount template (#5398)

current serviceAccount template failed to apply correctly
This commit is contained in:
Laurent Lavaud 2021-01-25 18:50:39 +01:00 committed by GitHub
parent 570cd9880d
commit 1373490c95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,8 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "teleport.serviceAccountName" . }}
labels:
{{ include "teleport.labels" . | indent 4 }}
{{- if .Values.serviceAccount.annotations -}}
annotations:
{{ .Values.serviceAccount.annotations | indent 4 }}
{{- end -}}
{{- end -}}
labels: {{ include "teleport.labels" . | nindent 4 }}
{{- if .Values.serviceAccount.annotations }}
annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- end }}