{{- if and .Values.snapshot.enabled .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ .Values.serviceAccount.snapshotController }}
  namespace: {{ .Release.Namespace }}
{{- end -}}
