Commit 9dd72f9b110d

Vincent Demeester <vincent@sbr.pm>
2020-01-20 14:23:42
chos4: add an option to run install on chos4
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 5e37f81
Changed files (3)
assets
pkgs
scripts
assets/chos4.desktop
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Name=chos4
-Exec=chos4
+Exec=chos4 install
 Type=Application
 Terminal=true
 Categories=System;
pkgs/scripts/bin/chos4
@@ -17,9 +17,9 @@ done
 export KUBECONFIG=~/.kube/config.os4
 oc login -u kubeadmin -p $(cat ~/.kube/kubeadmin.password.os4)
 
-echo ">>> scale machineset to 2"
-for machineset in $(oc get machineset -n openshift-machine-api -o name); do
-    oc scale --replicas=2 ${machineset} -n openshift-machine-api
-done
+if [[ "$1" == "install" ]]; then
+    op-inst
+fi
 
+echo ">>> your cluster is ready :)"
 read
pkgs/scripts/bin/op-inst
@@ -38,6 +38,3 @@ spec:
   source: community-operators
   sourceNamespace: openshift-marketplace
 EOF
-
-echo ">>> your cluster is ready :)"
-read