From 5dcb6f63e3bf96d98122bdddb294867bc3cbfd22 Mon Sep 17 00:00:00 2001 From: Nicola Ferraro Date: Mon, 3 Feb 2020 17:56:35 +0100 Subject: [PATCH] Fix #1162: wait for Kourier pods to be ready --- .github/workflows/pr-knative.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-knative.yml b/.github/workflows/pr-knative.yml index 3a7a2e8c04..000c72de3c 100644 --- a/.github/workflows/pr-knative.yml +++ b/.github/workflows/pr-knative.yml @@ -80,8 +80,10 @@ jobs: -p '{"data":{"clusteringress.class":"kourier.ingress.networking.knative.dev", "ingress.class":"kourier.ingress.networking.knative.dev"}}' + while [ "$(kubectl get pod -n kourier-system -o 'jsonpath={range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | grep -v True | wc -l)" != "0" ]; do echo "Waiting for all pods to be ready in kourier-system"; kubectl get pod -n kourier-system; sleep 5; done while [ "$(kubectl get pod -n knative-serving -o 'jsonpath={range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | grep -v True | wc -l)" != "0" ]; do echo "Waiting for all pods to be ready in knative-serving"; kubectl get pod -n knative-serving; sleep 5; done while [ "$(kubectl get pod -n knative-eventing -o 'jsonpath={range .items[*]}{.status.conditions[?(@.type=="Ready")].status}{"\n"}' | grep -v True | wc -l)" != "0" ]; do echo "Waiting for all pods to be ready in knative-eventing"; kubectl get pod -n knative-eventing; sleep 5; done + - name: Run IT run: | # Compute registry parameters