From 372fed158346767d24305dd185bed448a295107d Mon Sep 17 00:00:00 2001 From: wiktor2200 Date: Wed, 29 Dec 2021 13:51:00 +0100 Subject: [PATCH] add custom service account in init-job --- helm/superset/templates/init-job.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helm/superset/templates/init-job.yaml b/helm/superset/templates/init-job.yaml index d69e83062e40..483ced8d3702 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 }}