Skip to content
Snippets Groups Projects
Verified Commit 901ec34d authored by Mark's avatar Mark
Browse files

Refactor create users job

parent 559b8b72
No related branches found
No related tags found
1 merge request!7Integration user panel
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "single-sign-on.fullname" . }}
name: {{ include "single-sign-on.fullname" . }}-create-user-job
labels:
{{ include "single-sign-on.labels" . | indent 4 }}
annontations:
......@@ -29,8 +29,8 @@ spec:
value: oas_admin@example.net
command: ["/bin/bash", "-c"]
args:
- /bin/bash ./create-user.sh $USERNAME $PASSWORD $EMAIL {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./create-role.sh admin {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./create-application.sh user-panel {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./assign-role.sh $USERNAME admin {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./grant-access.sh $USERNAME user-panel {{ include "single-sign-on.fullname" . }}-userbackend 80
- /bin/bash ./utils/create-user.sh $USERNAME $PASSWORD $EMAIL {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./utils/create-role.sh admin {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./utils/create-application.sh user-panel {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./utils/assign-role.sh $USERNAME admin {{ include "single-sign-on.fullname" . }}-userbackend 80 &&
/bin/bash ./utils/grant-access.sh $USERNAME user-panel {{ include "single-sign-on.fullname" . }}-userbackend 80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment