Skip to content

Commit 9765acb

Browse files
committed
Set matrix k8s version for e2e ghaction.
Signed-off-by: Lan Liang <[email protected]>
1 parent 26b0440 commit 9765acb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/e2e.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ env:
1515
GO_VERSION: "1.21.6"
1616
# TODO: match BASEIMAGE with Makefile default (nonroot variant)
1717
BASEIMAGE: "gcr.io/distroless/static-debian11"
18-
K8S_VERSION: "v1.27.3"
1918
KIND_CLUSTER_NAME: "kind"
2019

2120
jobs:
@@ -60,6 +59,7 @@ jobs:
6059
fail-fast: false
6160
matrix:
6261
ipFamily: ["ipv4", "ipv6", "dual"]
62+
k8s: [ v1.27.11, v1.28.7, v1.29.2 ]
6363
env:
6464
JOB_NAME: "kindnetd-e2e-${{ matrix.ipFamily }}"
6565
IP_FAMILY: ${{ matrix.ipFamily }}
@@ -76,12 +76,12 @@ jobs:
7676
run: |
7777
TMP_DIR=$(mktemp -d)
7878
# Test binaries
79-
curl -L https://dl.k8s.io/${{ env.K8S_VERSION }}/kubernetes-test-linux-amd64.tar.gz -o ${TMP_DIR}/kubernetes-test-linux-amd64.tar.gz
79+
curl -L https://dl.k8s.io/${{ matrix.k8s }}/kubernetes-test-linux-amd64.tar.gz -o ${TMP_DIR}/kubernetes-test-linux-amd64.tar.gz
8080
tar xvzf ${TMP_DIR}/kubernetes-test-linux-amd64.tar.gz \
8181
--directory ${TMP_DIR} \
8282
--strip-components=3 kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
8383
# kubectl
84-
curl -L https://dl.k8s.io/${{ env.K8S_VERSION }}/bin/linux/amd64/kubectl -o ${TMP_DIR}/kubectl
84+
curl -L https://dl.k8s.io/${{ matrix.k8s }}/bin/linux/amd64/kubectl -o ${TMP_DIR}/kubectl
8585
# kind
8686
curl -Lo ${TMP_DIR}/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
8787
# Install
@@ -98,14 +98,15 @@ jobs:
9898
# create cluster
9999
cat <<EOF | /usr/local/bin/kind create cluster \
100100
--name ${{ env.KIND_CLUSTER_NAME}} \
101-
--image kindest/node:${{ env.K8S_VERSION }} \
101+
--image kindest/node:${{ matrix.k8s }} \
102102
-v7 --wait 1m --retain --config=-
103103
kind: Cluster
104104
apiVersion: kind.x-k8s.io/v1alpha4
105105
networking:
106106
ipFamily: ${IP_FAMILY}
107107
nodes:
108108
- role: control-plane
109+
image: ${{ matrix.k8s }}
109110
kubeadmConfigPatchesJSON6902:
110111
- kind: ClusterConfiguration
111112
patch: |
@@ -131,7 +132,9 @@ jobs:
131132
- hostPath: ./examples/kind/egress_selector_configuration.yaml
132133
containerPath: /etc/kubernetes/konnectivity-server-config/egress_selector_configuration.yaml
133134
- role: worker
135+
image: ${{ matrix.k8s }}
134136
- role: worker
137+
image: ${{ matrix.k8s }}
135138
EOF
136139
137140
# dump the kubeconfig for later

0 commit comments

Comments
 (0)