From 305857a390f3f04aadaf7f985625f6abe2828181 Mon Sep 17 00:00:00 2001 From: Philip Gough Date: Mon, 5 Jul 2021 09:56:28 +0100 Subject: [PATCH 1/2] 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 02e4d1a7..a355a1ba 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,13 +63,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 From 439914c74cb77d7dda26eb30363b5d9513d56273 Mon Sep 17 00:00:00 2001 From: Philip Gough Date: Mon, 5 Jul 2021 10:26:29 +0100 Subject: [PATCH 2/2] ci: bump kind version to 0.11.0 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a355a1ba..d4a86114 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ on: - pull_request env: golang-version: '1.15' - kind-version: 'v0.9.0' + kind-version: 'v0.11.0' jobs: generate: runs-on: ${{ matrix.os }}