From 578de6799f3280850f5c6943da142c7e2affee99 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Thu, 17 Sep 2026 17:06:31 +0200 Subject: [PATCH] Use existing retry helper for minikube DNS check Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- test/actions.github.com/helper.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/actions.github.com/helper.sh b/test/actions.github.com/helper.sh index 1bc17a46..b02638b2 100644 --- a/test/actions.github.com/helper.sh +++ b/test/actions.github.com/helper.sh @@ -114,18 +114,7 @@ function create_cluster() { minikube start --driver=docker --container-runtime=docker --network=bridge --wait=all log "Verifying ns works" - 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 + if ! retry 5 3 minikube ssh "nslookup github.com >/dev/null 2>&1"; then log "Nameserver configuration failed" exit 1 fi