This is an automated email from the ASF dual-hosted git repository.
amitmiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 22d23fc Add possibility to specify Service Account name for the
Deployment in the Helm chart (#15340)
22d23fc is described below
commit 22d23fcfb962146c4706ff0618d1e391554ef0be
Author: Max Voitko <[email protected]>
AuthorDate: Sat Jun 26 22:54:35 2021 +0300
Add possibility to specify Service Account name for the Deployment in the
Helm chart (#15340)
Co-authored-by: Maksym V <[email protected]>
---
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 3120db4..43ae9d9 100644
--- a/helm/superset/Chart.yaml
+++ b/helm/superset/Chart.yaml
@@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: [email protected]
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 fe0ce20..11d4a77 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 8e807da..3ac7551 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 }}