{{- if .Values.meshGateway.enabled }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "consul.fullname" . }}-mesh-gateway namespace: {{ .Release.Namespace }} labels: app: {{ template "consul.name" . }} chart: {{ template "consul.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: mesh-gateway {{- if .Values.meshGateway.serviceAccount.annotations }} annotations: {{ tpl .Values.meshGateway.serviceAccount.annotations . | nindent 4 | trim }} {{- end }} {{- with .Values.global.imagePullSecrets }} imagePullSecrets: {{- range . }} - name: {{ .name }} {{- end }} {{- end }} {{- end }}