# grafana_charts_tokengen-serviceaccount.yaml
{{- if and .Values.enterprise.enabled .Values.tokengenJob.enable -}}
{{ $dict := dict "ctx" . "component" "tokengen" }}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ include "tempo.resourceName" $dict }}
  labels:
    {{- include "tempo.labels" $dict | nindent 4 }}
  namespace: {{ .Release.Namespace | quote }}
{{- end -}}