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 daefebb feat: Make initial user configurable in helm chart (#12862)
daefebb is described below
commit daefebb49deb255dad8514d62b6887ca1a00a723
Author: Andreas Eberle <[email protected]>
AuthorDate: Sat Mar 20 22:23:05 2021 +0100
feat: Make initial user configurable in helm chart (#12862)
* Make initial user configurable in helm chart
* Update helm/superset/values.yaml
Co-authored-by: Amit Miran <[email protected]>
* Update helm/superset/values.yaml
Co-authored-by: Amit Miran <[email protected]>
Co-authored-by: Craig Rueda <[email protected]>
Co-authored-by: Amit Miran <[email protected]>
---
helm/superset/values.yaml | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml
index b011670..02744a9 100644
--- a/helm/superset/values.yaml
+++ b/helm/superset/values.yaml
@@ -200,6 +200,12 @@ init:
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{
.Values.configMountPath }}/superset_init.sh"
enabled: true
loadExamples: false
+ adminUser:
+ username: admin
+ firstname: Superset
+ lastname: Admin
+ email: [email protected]
+ password: admin
initContainers:
- name: wait-for-postgres
image: busybox:latest
@@ -216,11 +222,12 @@ init:
superset init
echo "Creating admin user..."
superset fab create-admin \
- --username admin \
- --firstname Superset \
- --lastname Admin \
- --email [email protected] \
- --password admin || true
+ --username {{ .Values.init.adminUser.username }} \
+ --firstname {{ .Values.init.adminUser.firstname }} \
+ --lastname {{ .Values.init.adminUser.lastname }} \
+ --email {{ .Values.init.adminUser.email }} \
+ --password {{ .Values.init.adminUser.password }} \
+ || true
{{ if .Values.init.loadExamples }}
echo "Loading examples..."
superset load_examples