diff --git a/deployment/helmchart/templates/job-initialize-user.yaml b/deployment/helmchart/templates/job-initialize-user.yaml index a1d6d1d95edeebb0c1a9762ed94daf6c2cb66b96..90ea48a7e1cbdc8c746f3fd4e58f50dca3ee3c5f 100644 --- a/deployment/helmchart/templates/job-initialize-user.yaml +++ b/deployment/helmchart/templates/job-initialize-user.yaml @@ -8,7 +8,7 @@ metadata: {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} {{- end }} annotations: - "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook": post-install "helm.sh/hook-weight": "-5" "helm.sh/hook-delete-policy": before-hook-creation {{- if .Values.commonAnnotations }} @@ -46,9 +46,7 @@ spec: value: http://kratos-public:80 command: ["/bin/bash", "-c"] args: - - flask db upgrade; - {{- if .Release.IsInstall }} - flask cli user create $SETUP_EMAIL; + - 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; @@ -57,5 +55,3 @@ spec: flask cli user setrole $SETUP_EMAIL wekan admin; flask cli user setrole $SETUP_EMAIL zulip admin; flask cli user setrole $SETUP_EMAIL hedgedoc admin; - {{- end }} -