Commit 9e01d0b32b5c

Vincent Demeester <vincent@sbr.pm>
2020-09-08 18:04:59
chos4: setup identity providers on chos4
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 8c05e98
Changed files (1)
pkgs
scripts
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