From 22d23fcfb962146c4706ff0618d1e391554ef0be Mon Sep 17 00:00:00 2001 From: Max Voitko Date: Sat, 26 Jun 2021 22:54:35 +0300 Subject: [PATCH] Add possibility to specify Service Account name for the Deployment in the Helm chart (#15340) Co-authored-by: Maksym V --- helm/superset/Chart.yaml | 2 +- helm/superset/templates/deployment-worker.yaml | 3 +++ helm/superset/templates/deployment.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml index 3120db4fd4..43ae9d9437 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.1.6 +version: 0.2.0 dependencies: - name: postgresql version: 10.2.0 diff --git a/helm/superset/templates/deployment-worker.yaml b/helm/superset/templates/deployment-worker.yaml index fe0ce20d85..11d4a77591 100644 --- a/helm/superset/templates/deployment-worker.yaml +++ b/helm/superset/templates/deployment-worker.yaml @@ -53,6 +53,9 @@ spec: app: {{ template "superset.name" . }}-worker release: {{ .Release.Name }} spec: + {{- if .Values.serviceAccountName }} + serviceAccountName: {{ .Values.serviceAccountName }} + {{- end }} securityContext: runAsUser: {{ .Values.runAsUser }} {{- if .Values.supersetWorker.initContainers }} diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml index 8e807daf15..3ac7551b76 100644 --- a/helm/superset/templates/deployment.yaml +++ b/helm/superset/templates/deployment.yaml @@ -56,6 +56,9 @@ spec: app: {{ template "superset.name" . }} release: {{ .Release.Name }} spec: + {{- if .Values.serviceAccountName }} + serviceAccountName: {{ .Values.serviceAccountName }} + {{- end }} securityContext: runAsUser: {{ .Values.runAsUser }} {{- if .Values.supersetNode.initContainers }}