home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9e01d0b32b5c8786a37552f29d613192b7cfc777
parent 8c05e985f9607063faec135d5b8c9371c5f869a8
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue,  8 Sep 2020 17:04:59 +0100

chos4: setup identity providers on chos4

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mpkgs/scripts/bin/chos4 | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/pkgs/scripts/bin/chos4 b/pkgs/scripts/bin/chos4 @@ -22,6 +22,14 @@ for machineset in $(oc get machineset -n openshift-machine-api -o name); do oc scale --replicas=2 ${machineset} -n openshift-machine-api done +echo ">>> setup identity providers" +if test -f $HOME/sync/work/chos4/users.htpasswd; then + oc create secret generic htpass-secret --from-file=htpasswd=$HOME/sync/work/chos4/users.htpasswd -n openshift-config + for cr in $HOME/sync/chos4/oauth.*.yaml; do + oc apply -f $cr + done +fi + if [[ "$1" == "install" ]]; then op-inst fi