Skip to content

Commit

Permalink
add custom service account in init-job
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor2200 committed Dec 29, 2021
1 parent be299eb commit 372fed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/superset/templates/init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 372fed1

Please sign in to comment.