From 3cb92c215f20261ee5fd99d98385245f7822b13c Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Tue, 24 Dec 2019 13:32:05 +0100 Subject: [PATCH] Fix job template --- .../templates/job-create-admin-user.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/helmchart/single-sign-on/templates/job-create-admin-user.yaml b/helmchart/single-sign-on/templates/job-create-admin-user.yaml index 7c73496..154650f 100644 --- a/helmchart/single-sign-on/templates/job-create-admin-user.yaml +++ b/helmchart/single-sign-on/templates/job-create-admin-user.yaml @@ -30,10 +30,10 @@ spec: value: {{ .Values.userbackend.email }} command: ["/bin/bash", "-c"] args: - - /bin/bash ./utils/create-user.bash "$USERNAME" "$PASSWORD" "$EMAIL" {{ include "single-sign-on.fullname" . }}-userbackend 80 && + - /bin/bash ./utils/create-user.bash "$USERNAME" "$PASSWORD" "$EMAIL" http://{{ include "single-sign-on.fullname" . }}-userbackend:80 && {{- range .Values.oAuthClients }} - /bin/bash ./utils/create-application.bash {{ .clientName }} {{ include "single-sign-on.fullname" $ }}-userbackend 80 && - /bin/bash ./utils/grant-access.bash "$USERNAME" {{ .clientName }} {{ include "single-sign-on.fullname" $ }}-userbackend 80 && + /bin/bash ./utils/create-application.bash {{ .clientName }} http://{{ include "single-sign-on.fullname" $ }}-userbackend:80 && + /bin/bash ./utils/grant-access.bash "$USERNAME" {{ .clientName }} http://{{ include "single-sign-on.fullname" $ }}-userbackend:80 && {{- end }} - /bin/bash ./utils/create-role.bash admin {{ include "single-sign-on.fullname" . }}-userbackend 80 && - /bin/bash ./utils/assign-role.bash "$USERNAME" admin {{ include "single-sign-on.fullname" . }}-userbackend 80 + /bin/bash ./utils/create-role.bash admin http://{{ include "single-sign-on.fullname" . }}-userbackend:80 && + /bin/bash ./utils/assign-role.bash "$USERNAME" admin http://{{ include "single-sign-on.fullname" . }}-userbackend:80 -- GitLab