Skip to content

Commit 92c9292

Browse files
committed
add wait to sanity check
Signed-off-by: rick.stokkingreef <rick.stokkingreef@airalo.com>
1 parent 4bf5fd8 commit 92c9292

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/cluster-setup/sanity-check.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
# Exit immediately if any command fails
44
set -e
55

6-
echo ">>> Sanity checks for e2e tests. If these tests fail, your e2e tests will also fail. <<<"
7-
8-
kubectl get gatewayclasses traefik
9-
6+
echo ">> Waiting for traefik gateway class to be accepted ..."
107
sleep 10
118

12-
kubectl get gatewayclasses traefik
9+
echo ">>> Sanity checks for e2e tests. If these tests fail, your e2e tests will also fail. <<<"
1310

1411
echo "Checking e2egateway class traefik with accepted condition=true ..."
1512
kubectl get gatewayclasses traefik -o jsonpath='{.status.conditions[?(@.type=="Accepted")].status}' | grep -q "True"

0 commit comments

Comments
 (0)