From 1918dc04559fcc6df369f3bf09d165561a29176e Mon Sep 17 00:00:00 2001 From: Josh Paulin Date: Fri, 10 Jun 2022 16:03:13 -0400 Subject: [PATCH] fix: Add serviceAccountName to celerybeat pods. (#19670) Co-authored-by: josh.paulin --- helm/superset/Chart.yaml | 2 +- helm/superset/templates/deployment-beat.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index 70dd6fd162b8..16c59869dfb4 100644 --- a/helm/superset/Chart.yaml +++ b/helm/superset/Chart.yaml @@ -22,7 +22,7 @@ maintainers: - name: craig-rueda email: craig@craigrueda.com url: https://github.com/craig-rueda -version: 0.6.2 +version: 0.6.3 dependencies: - name: postgresql version: 11.1.22 diff --git a/helm/superset/templates/deployment-beat.yaml b/helm/superset/templates/deployment-beat.yaml index d46d47ee3f9c..5587dcf343eb 100644 --- a/helm/superset/templates/deployment-beat.yaml +++ b/helm/superset/templates/deployment-beat.yaml @@ -59,6 +59,9 @@ spec: {{ toYaml .Values.supersetCeleryBeat.podLabels | nindent 8 }} {{- end }} spec: + {{- if or (.Values.serviceAccount.create) (.Values.serviceAccountName) }} + serviceAccountName: {{ template "superset.serviceAccountName" . }} + {{- end }} securityContext: runAsUser: {{ .Values.runAsUser }} {{- if .Values.supersetCeleryBeat.initContainers }}