Skip to content

Commit 79c0fa7

Browse files
authored
Update PR workflow with latest k8s (#1065)
Given that we support the latest k8s version since we merged #1044 and Kubernetes 1.21 is out of support since 1.24 became GA, we should update our workflow to test on a newer Kubernetes version.
1 parent 37138d6 commit 79c0fa7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/pr.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
env:
88
GO_VERSION: 1.17.x
9+
K8S_VERSION: v1.24.1
910

1011
jobs:
1112

@@ -36,7 +37,7 @@ jobs:
3637
export GOPATH=$HOME/go
3738
export PATH=$PATH:$GOPATH/bin
3839
make install-tools
39-
kind create cluster --image kindest/node:v1.21.1
40+
kind create cluster --image kindest/node:"${{ env.K8S_VERSION }}"
4041
kubectl create --validate=false -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.crds.yaml
4142
# Create CRD PodMonitor without running Prometheus operator
4243
curl https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/master/bundle.yaml | sed "s/replicas: 1$/replicas: 0/" | kubectl create -f -
@@ -50,7 +51,7 @@ jobs:
5051
strategy:
5152
matrix:
5253
k8s:
53-
- v1.21.1
54+
- v1.24.1
5455
rabbitmq-image:
5556
- rabbitmq:3.8.8-management
5657
- rabbitmq:3.9-management
@@ -92,11 +93,9 @@ jobs:
9293
- name: Check out code into the Go module directory
9394
uses: actions/checkout@v2
9495
- name: kubectl rabbitmq tests
95-
env:
96-
K8S_VERSION: v1.21.1
9796
run: |
9897
export GOPATH=$HOME/go
9998
export PATH=$PATH:$GOPATH/bin
10099
make install-tools
101-
kind create cluster --image kindest/node:"$K8S_VERSION"
100+
kind create cluster --image kindest/node:"${{ env.K8S_VERSION }}"
102101
DOCKER_REGISTRY_SERVER=local-server OPERATOR_IMAGE=local-operator make deploy-kind kubectl-plugin-tests

0 commit comments

Comments
 (0)