diff --git a/helm/superset/templates/init-job.yaml b/helm/superset/templates/init-job.yaml index d69e83062e405..483ced8d3702b 100644 --- a/helm/superset/templates/init-job.yaml +++ b/helm/superset/templates/init-job.yaml @@ -31,6 +31,9 @@ spec: {{ toYaml .Values.init.podAnnotations | nindent 8 }} {{- end }} spec: + {{- if or (.Values.serviceAccount.create) (.Values.serviceAccountName) }} + serviceAccountName: {{ template "superset.serviceAccountName" . }} + {{- end }} securityContext: runAsUser: {{ .Values.runAsUser }} {{- if .Values.init.initContainers }}