File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -428,8 +428,15 @@ deploy_watcher() {
428428 if ! kubectl get crd startupcpuboosts.autoscaling.x-k8s.io & > /dev/null; then
429429 log_info " Installing Kube Startup CPU Boost..."
430430 kubectl apply -f https://github.com/google/kube-startup-cpu-boost/releases/download/v0.17.1/manifests.yaml >> " ${deploy_log} " 2>&1
431- kubectl wait --for=condition=ready pod -l control-plane=controller-manager \
432- -n kube-startup-cpu-boost-system --timeout=120s >> " ${deploy_log} " 2>&1
431+ # Wait for controller with shorter timeout, continue even if it fails
432+ if ! kubectl wait --for=condition=ready pod -l control-plane=controller-manager \
433+ -n kube-startup-cpu-boost-system --timeout=60s >> " ${deploy_log} " 2>&1 ; then
434+ log_info " CPU boost controller not ready, skipping pod-resize test"
435+ echo " ${tag} | ${size_local:- N/ A} | ${size_ecr:- N/ A} | ${build_time:- N/ A} | CONTROLLER NOT READY" >> " ${RESULTS_FILE} "
436+ # Cleanup
437+ kubectl delete -f https://github.com/google/kube-startup-cpu-boost/releases/download/v0.17.1/manifests.yaml >> " ${deploy_log} " 2>&1 || true
438+ continue
439+ fi
433440 fi
434441
435442 # Create StartupCPUBoost resource
You can’t perform that action at this time.
0 commit comments