{{- if and .Values.testFramework.enabled .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  labels:
    {{- include "grafana.labels" . | nindent 4 }}
  name: {{ template "grafana.serviceAccountNameTest" . }}
  namespace: {{ template "grafana.namespace" . }}
{{- end }}
