chore: Add ghz sleep, controller logs
@@ -12,11 +12,26 @@ echo "Init redskyops"
${REDSKYCTL_BIN} init
echo "Wait for controller"
+# TODO
+## This can fail if the resource does not exist yet because we have all the Ghz
+## + ./redskyctl-bin check controller --wait
+## error: no matching resources found
+## Error: exit status 1
+sleep 5
${REDSKYCTL_BIN} check controller --wait
echo "Create nginx deployment"
kubectl apply -f hack/nginx.yaml
+Stats() {
+ ${REDSKYCTL_BIN} generate experiment -f hack/app.yaml
+ kubectl get po -o wide
+ kubectl get trial -o wide
+ kubectl logs -n redsky-system -l control-plane=controller-manager
+}
+
+trap Stats EXIT
+
echo "Create ci experiment"
${REDSKYCTL_BIN} generate experiment -f hack/app.yaml | \
kubectl apply -f -
@@ -30,12 +45,6 @@ ${REDSKYCTL_BIN} generate trial \
kubectl get trial -o wide
-Stats() {
- kubectl get po -o wide
- kubectl get trial -o wide
-}
-
-trap Stats EXIT
waitTime=300s
echo "Wait for trial to complete (${waitTime} timeout)"
