From 1dcc2116e9b1768a187407e2292f2e496924d515 Mon Sep 17 00:00:00 2001 From: Philip Gough Date: Mon, 5 Jul 2021 09:56:28 +0100 Subject: [PATCH] ci: Harden action to wait for kind cluster readiness --- .github/workflows/ci.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb4459d0..e92d58b2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,13 +40,9 @@ jobs: with: version: ${{ env.kind-version }} image: ${{ matrix.kind-image }} + wait: 300s - name: Wait for cluster to finish bootstraping - run: | - until [ "$(kubectl get pods --all-namespaces --no-headers | grep -cEv '([0-9]+)/\1')" -eq 0 ]; do - sleep 5s - done - kubectl cluster-info - kubectl get pods -A + run: kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s - name: Create kube-prometheus stack run: | kubectl create -f manifests/setup