{{- if .Values.controller.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "gha-controller.service-account-name" . }} namespace: {{ include "gha-controller.namespace" . }} labels: {{- include "gha-controller.labels" . | nindent 4 }} {{- with .Values.controller.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}