feat(helm): Make local admin optional (#14703)

* Make local admin optional

* fix for linting
This commit is contained in:
Daniel Wood 2021-06-15 23:22:18 -07:00 committed by GitHub
parent ffdbcbd16e
commit 9282c58654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -239,6 +239,7 @@ init:
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{ .Values.configMountPath }}/superset_init.sh"
enabled: true
loadExamples: false
createAdmin: true
adminUser:
username: admin
firstname: Superset
@ -259,6 +260,7 @@ init:
superset db upgrade
echo "Initializing roles..."
superset init
{{ if .Values.init.createAdmin }}
echo "Creating admin user..."
superset fab create-admin \
--username {{ .Values.init.adminUser.username }} \
@ -267,6 +269,7 @@ init:
--email {{ .Values.init.adminUser.email }} \
--password {{ .Values.init.adminUser.password }} \
|| true
{{- end }}
{{ if .Values.init.loadExamples }}
echo "Loading examples..."
superset load_examples