15
15
GO_VERSION : " 1.21.6"
16
16
# TODO: match BASEIMAGE with Makefile default (nonroot variant)
17
17
BASEIMAGE : " gcr.io/distroless/static-debian11"
18
- K8S_VERSION : " v1.27.3"
19
18
KIND_CLUSTER_NAME : " kind"
20
19
21
20
jobs :
60
59
fail-fast : false
61
60
matrix :
62
61
ipFamily : ["ipv4", "ipv6", "dual"]
62
+ k8s : [ v1.27.11, v1.28.7, v1.29.2 ]
63
63
env :
64
64
JOB_NAME : " kindnetd-e2e-${{ matrix.ipFamily }}"
65
65
IP_FAMILY : ${{ matrix.ipFamily }}
@@ -76,12 +76,12 @@ jobs:
76
76
run : |
77
77
TMP_DIR=$(mktemp -d)
78
78
# 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
80
80
tar xvzf ${TMP_DIR}/kubernetes-test-linux-amd64.tar.gz \
81
81
--directory ${TMP_DIR} \
82
82
--strip-components=3 kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
83
83
# 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
85
85
# kind
86
86
curl -Lo ${TMP_DIR}/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
87
87
# Install
@@ -98,14 +98,15 @@ jobs:
98
98
# create cluster
99
99
cat <<EOF | /usr/local/bin/kind create cluster \
100
100
--name ${{ env.KIND_CLUSTER_NAME}} \
101
- --image kindest/node:${{ env.K8S_VERSION }} \
101
+ --image kindest/node:${{ matrix.k8s }} \
102
102
-v7 --wait 1m --retain --config=-
103
103
kind: Cluster
104
104
apiVersion: kind.x-k8s.io/v1alpha4
105
105
networking:
106
106
ipFamily: ${IP_FAMILY}
107
107
nodes:
108
108
- role: control-plane
109
+ image: ${{ matrix.k8s }}
109
110
kubeadmConfigPatchesJSON6902:
110
111
- kind: ClusterConfiguration
111
112
patch: |
@@ -131,7 +132,9 @@ jobs:
131
132
- hostPath: ./examples/kind/egress_selector_configuration.yaml
132
133
containerPath: /etc/kubernetes/konnectivity-server-config/egress_selector_configuration.yaml
133
134
- role: worker
135
+ image: ${{ matrix.k8s }}
134
136
- role: worker
137
+ image: ${{ matrix.k8s }}
135
138
EOF
136
139
137
140
# dump the kubeconfig for later
0 commit comments