From cdab4847e0629fc5c67cf7f07b4543a720947dbe 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 68da3163..045d690a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,13 +41,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 f9727df11a3432673ba30cea076aa3d8104aab61 Mon Sep 17 00:00:00 2001 From: Damien Grisonnet Date: Mon, 9 Aug 2021 18:07:39 +0200 Subject: [PATCH 2/2] .github: bump kind version and images Signed-off-by: Damien Grisonnet --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 045d690a..902fead5 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.1' jobs: generate: runs-on: ${{ matrix.os }} @@ -32,8 +32,8 @@ jobs: strategy: matrix: kind-image: - - 'kindest/node:v1.19.0' - - 'kindest/node:v1.20.0' + - 'kindest/node:v1.19.11' + - 'kindest/node:v1.20.7' steps: - uses: actions/checkout@v2 - name: Start KinD