{{- if .Values.global.acls.manageSystemACLs }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "consul.fullname" . }}-auth-method namespace: {{ .Release.Namespace }} labels: app: {{ template "consul.name" . }} chart: {{ template "consul.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: auth-method {{- with .Values.global.imagePullSecrets }} imagePullSecrets: {{- range . }} - name: {{ .name }} {{- end }} {{- end }} {{- end }}