{{- if and .Values.apiportal.enabled .Values.apiportal.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "gateway.apiportal.serviceAccountName" . }} labels: {{- include "gateway.labels" . | nindent 4 }} app.kubernetes.io/component: apiportal {{- with .Values.apiportal.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}