{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "mariadb.serviceAccountName" . }}
  labels:
    app: "{{ template "mariadb.name" . }}"
    chart: "{{ template "mariadb.chart" . }}"
    release: "{{ .Release.Name | quote }}"
    heritage: "{{ .Release.Service | quote }}"
{{- end }}
