vanducng commented on issue #20330:
URL: https://github.com/apache/superset/issues/20330#issuecomment-1186392679

   Already able to fix this by modifying init script as below.
   
   ```yaml
   init:
       enabled: true
       loadExamples: false
       createAdmin: true
       adminUser:
         username: admin
         firstname: Superset
         lastname: Admin
         email: [email protected]
       initscript: |-
         #!/bin/sh
         set -eu
         echo "Upgrading DB schema..."
         superset db upgrade & superset init
         {{ if .Values.init.createAdmin }}
         echo "Creating admin user..."
         superset fab create-admin \
                         --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
         {{- end }}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to