diff --git a/deployment/helmchart/templates/job-initialize-user.yaml b/deployment/helmchart/templates/job-initialize-user.yaml index 90ea48a7e1cbdc8c746f3fd4e58f50dca3ee3c5f..bd4594854f9ccf2e492e390cbdd0d48edc83ab36 100644 --- a/deployment/helmchart/templates/job-initialize-user.yaml +++ b/deployment/helmchart/templates/job-initialize-user.yaml @@ -27,31 +27,26 @@ spec: image: {{ template "backend.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} envFrom: - - configMapRef: - name: {{ include "common.names.fullname" . }} - {{- if .Values.backend.extraEnvVarsCM }} - - configMapRef: - name: {{ .Values.backend.extraEnvVarsCM }} - {{- end }} - {{- if .Values.backend.extraEnvVarsSecret }} - - secretRef: - name: {{ .Values.backend.extraEnvVarsSecret }} - {{- end }} + - configMapRef: + name: {{ include "common.names.fullname" . }} + {{- if .Values.backend.extraEnvVarsCM }} + - configMapRef: + name: {{ .Values.backend.extraEnvVarsCM }} + {{- end }} + {{- if .Values.backend.extraEnvVarsSecret }} + - secretRef: + name: {{ .Values.backend.extraEnvVarsSecret }} + {{- end }} env: - - name: SETUP_EMAIL - value: {{ .Values.backend.initialUser.email }} - - name: SETUP_PASSWORD - value: {{ .Values.backend.initialUser.password }} - - name: KRATOS_PUBLIC_URL - value: http://kratos-public:80 + - name: SETUP_EMAIL + value: {{ .Values.backend.initialUser.email }} + - name: SETUP_PASSWORD + value: {{ .Values.backend.initialUser.password }} + - name: KRATOS_PUBLIC_URL + value: http://kratos-public:80 command: ["/bin/bash", "-c"] args: - - flask cli user create $SETUP_EMAIL; - flask cli user setpassword $SETUP_EMAIL $SETUP_PASSWORD; - flask cli app create dashboard Dashboard; - flask cli user setrole $SETUP_EMAIL dashboard admin; - flask cli user setrole $SETUP_EMAIL nextcloud admin; - flask cli user setrole $SETUP_EMAIL wordpress admin; - flask cli user setrole $SETUP_EMAIL wekan admin; - flask cli user setrole $SETUP_EMAIL zulip admin; - flask cli user setrole $SETUP_EMAIL hedgedoc admin; + - flask cli user create $SETUP_EMAIL; + flask cli user setpassword $SETUP_EMAIL $SETUP_PASSWORD; + flask cli app create dashboard Dashboard; + flask cli user setrole $SETUP_EMAIL dashboard admin;