Skip to content

Commit

Permalink
chore: Add k8s 1.30 check and update kuttle (#282)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiy Kulanov <[email protected]>
  • Loading branch information
SergK committed Sep 5, 2024
1 parent e61dca7 commit dbb496e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
2 changes: 1 addition & 1 deletion hack/install-kuttl.sh
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions hack/kind-1.30.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.30.2@sha256:ecfe5841b9bee4fe9690f49c118c33629fa345e3350a0c67a5a34482a99d6bba

0 comments on commit dbb496e

Please sign in to comment.