{{- if .Values.serviceAccounts.driver.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  labels:
    app: {{ template "cosbench.name" . }}
    chart: {{ template "cosbench.chart" . }}
    component: driver
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
  name: {{ template "cosbench.serviceAccountName.driver" . }}
{{- end }}
