From dbb496eecfbeb3a7b5494da559bc38919e18cd4e Mon Sep 17 00:00:00 2001 From: Sergiy Kulanov Date: Thu, 5 Sep 2024 09:16:19 +0300 Subject: [PATCH] chore: Add k8s 1.30 check and update kuttle (#282) Signed-off-by: Sergiy Kulanov --- .github/workflows/e2e.yaml | 14 +++++++------- .github/workflows/pr.yaml | 14 +++++++------- .github/workflows/release.yaml | 4 ++-- hack/install-kuttl.sh | 2 +- hack/kind-1.30.yaml | 5 +++++ 5 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 hack/kind-1.30.yaml diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index d92bcd12..8327f458 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -12,8 +12,8 @@ env: GOLANG_VERSION: '1.22' jobs: - e2e-tests-128: - name: End-to-end tests 1.28 + e2e-tests-130: + name: End-to-end tests 1.30 runs-on: ubuntu-20.04 strategy: fail-fast: false @@ -43,7 +43,7 @@ jobs: - name: "run tests" env: - KUBE_VERSION: "1.28" + KUBE_VERSION: "1.30" run: make start-kind KUBE_VERSION=$KUBE_VERSION && make e2e - name: Save cache @@ -57,7 +57,7 @@ jobs: e2e-tests-129: name: End-to-end tests 1.29 - needs: [e2e-tests-128] + needs: [e2e-tests-130] runs-on: ubuntu-20.04 strategy: fail-fast: false @@ -102,13 +102,13 @@ jobs: e2e-tests-check: runs-on: ubuntu-20.04 if: always() - needs: [e2e-tests-128, e2e-tests-129] + needs: [e2e-tests-130, e2e-tests-129] steps: - name: Print result - run: echo ${{ needs.e2e-tests-128.result }} && echo ${{ needs.e2e-tests-129.result }} + run: echo ${{ needs.e2e-tests-130.result }} && echo ${{ needs.e2e-tests-129.result }} - name: Interpret result run: | - if [[ success == ${{ needs.e2e-tests-128.result }} && success == ${{ needs.e2e-tests-129.result }} ]] + if [[ success == ${{ needs.e2e-tests-130.result }} && success == ${{ needs.e2e-tests-129.result }} ]] then echo "All matrix jobs passed!" else diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 018be566..79ea8a13 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -145,8 +145,8 @@ jobs: with: dockerfile: Dockerfile - e2e-tests-128: - name: End-to-end tests 1.28 + e2e-tests-130: + name: End-to-end tests 1.30 needs: [docker-lint] runs-on: ubuntu-20.04 strategy: @@ -177,7 +177,7 @@ jobs: - name: "run tests" env: - KUBE_VERSION: "1.28" + KUBE_VERSION: "1.30" run: make start-kind KUBE_VERSION=$KUBE_VERSION && make e2e - name: Save cache @@ -191,7 +191,7 @@ jobs: e2e-tests-129: name: End-to-end tests 1.29 - needs: [e2e-tests-128] + needs: [e2e-tests-130] runs-on: ubuntu-20.04 strategy: fail-fast: false @@ -236,13 +236,13 @@ jobs: e2e-tests-check: runs-on: ubuntu-20.04 if: always() - needs: [e2e-tests-128, e2e-tests-129] + needs: [e2e-tests-130, e2e-tests-129] steps: - name: Print result - run: echo ${{ needs.e2e-tests-128.result }} && echo ${{ needs.e2e-tests-129.result }} + run: echo ${{ needs.e2e-tests-130.result }} && echo ${{ needs.e2e-tests-129.result }} - name: Interpret result run: | - if [[ success == ${{ needs.e2e-tests-128.result }} && success == ${{ needs.e2e-tests-129.result }} ]] + if [[ success == ${{ needs.e2e-tests-130.result }} && success == ${{ needs.e2e-tests-129.result }} ]] then echo "All matrix jobs passed!" else diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e383996..86de71d7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,12 +16,12 @@ jobs: SOURCE_TAG: ${{ github.ref }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: '0' - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GOLANG_VERSION }} diff --git a/hack/install-kuttl.sh b/hack/install-kuttl.sh index 6727e234..881ac2cf 100755 --- a/hack/install-kuttl.sh +++ b/hack/install-kuttl.sh @@ -1,5 +1,5 @@ #!/bin/bash -sudo curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.17.0/kubectl-kuttl_0.17.0_linux_x86_64 +sudo curl -Lo /usr/local/bin/kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.19.0/kubectl-kuttl_0.19.0_linux_x86_64 sudo chmod +x /usr/local/bin/kubectl-kuttl export PATH=$PATH:/usr/local/bin diff --git a/hack/kind-1.30.yaml b/hack/kind-1.30.yaml new file mode 100644 index 00000000..8be94072 --- /dev/null +++ b/hack/kind-1.30.yaml @@ -0,0 +1,5 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: + - role: control-plane + image: kindest/node:v1.30.2@sha256:ecfe5841b9bee4fe9690f49c118c33629fa345e3350a0c67a5a34482a99d6bba