{{ if .Values.enabledComponents.dgxcAdmissionController }}
{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ .Values.serviceAccount.name }}
  {{- if .Values.serviceAccount.annotations }}
  annotations:
    {{ toYaml .Values.serviceAccount.annotations }}
  {{- end }}
{{ end }}
{{ end }}
