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