{{- if not .Values.serviceAccount.name -}} kind: ServiceAccount apiVersion: v1 metadata: name: {{ include "traefik.serviceAccountName" . }} labels: app.kubernetes.io/name: {{ template "traefik.name" . }} helm.sh/chart: {{ template "traefik.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} annotations: {{- with .Values.serviceAccountAnnotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- end -}}