From b69bf20caeb686ee0c3548ac147dc0d1130bc19a Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Pelayo Date: Fri, 31 Oct 2025 18:58:42 +0100 Subject: [PATCH 1/2] Update nginx wait for operator-e2e The nginx ingress can be slow to deploy, and makes the operator e2e test fail sometimes. --- hack/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/utils b/hack/utils index 7b558297..39f2d190 100755 --- a/hack/utils +++ b/hack/utils @@ -80,7 +80,7 @@ install_nginx_ingress() { kubectl wait --namespace ingress-nginx \ --for=condition=ready pod \ --selector=app.kubernetes.io/component=controller \ - --timeout=90s + --timeout=180s echo -e "${GREEN}Nginx ingress installed successfully${NC}" } From d35b2e9a4fecb4760ad32b06101bedf9fb5672f5 Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Pelayo Date: Fri, 31 Oct 2025 19:05:48 +0100 Subject: [PATCH 2/2] wait for nginx deployment to be ready waiting for pods seems to be problematic, sometimes the pods won't exist when it tries to check, hence fails because no resource exist (i.e. pod being re-created). wating for the deployment provides a better warranty. --- hack/utils | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hack/utils b/hack/utils index 39f2d190..88d77012 100755 --- a/hack/utils +++ b/hack/utils @@ -73,13 +73,9 @@ install_nginx_ingress() { echo -e "${GREEN}Waiting for nginx to be ready ...${NC}" - while ! kubectl get pods --namespace ingress-nginx --selector=app.kubernetes.io/component=controller > /dev/null 2>&1; do - sleep 1 - done kubectl wait --namespace ingress-nginx \ - --for=condition=ready pod \ - --selector=app.kubernetes.io/component=controller \ + --for=condition=available deployment/ingress-nginx-controller \ --timeout=180s echo -e "${GREEN}Nginx ingress installed successfully${NC}"