Skip to content

Commit ec28bf0

Browse files
author
Yuriy Bezsonov
committed
fix(infra): improve Kube Startup CPU Boost deployment resilience
1 parent 11f22bb commit ec28bf0

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

infra/scripts/deploy/test-optimizations.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)