Cover the outdated runner lifecycle end to end (#4662)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Nikola Jokic
2026-09-18 11:18:59 +02:00
committed by GitHub
co-authored by Copilot App
parent 6df0e09f84
commit e8753bcf57
4 changed files with 1203 additions and 2 deletions
+13 -2
View File
@@ -111,10 +111,21 @@ function create_cluster() {
minikube delete || true
log "Creating minikube cluster"
minikube start --driver=docker --container-runtime=docker --wait=all
minikube start --driver=docker --container-runtime=docker --network=bridge --wait=all
log "Verifying ns works"
if ! minikube ssh "nslookup github.com >/dev/null 2>&1"; then
local ns_retries=5
local ns_delay=3
local ns_ok=false
for (( i=1; i<=ns_retries; i++ )); do
if minikube ssh "nslookup github.com >/dev/null 2>&1"; then
ns_ok=true
break
fi
log "DNS check attempt ${i}/${ns_retries} failed, retrying in ${ns_delay}s..."
sleep "${ns_delay}"
done
if [[ "${ns_ok}" != "true" ]]; then
log "Nameserver configuration failed"
exit 1
fi