From 0b46629ca51d4aa06f8b14f2dc408c6d832ed781 Mon Sep 17 00:00:00 2001 From: Samy CHBINOU Date: Wed, 31 Jan 2024 20:37:10 +0100 Subject: [PATCH] Update nginx.yml --- .github/workflows/nginx.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index 10c3cd674c..5b5305c0cd 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -148,9 +148,7 @@ jobs: - port: 5678 EOF kubectl wait pod --all --for=condition=Ready -n default - until [ -n "$(kubectl get svc/foo-service -o=jsonpath='{.status.loadBalancer.ingress[0].ip}')" ]; do - sleep 10 - done + timeout 15s bash -c 'until kubectl get service/foo-service --output=jsonpath='{.status.loadBalancer}' | grep "ingress"; do : ; done' LB_IP=$(kubectl get svc/foo-service -o=jsonpath='{.status.loadBalancer.ingress[0].ip}') curl -m 5 ${LB_IP}:5678