File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 52
52
name : kind-e2e
53
53
runs-on : ubuntu-20.04
54
54
timeout-minutes : 100
55
+ needs :
56
+ - build
57
+ env :
58
+ REGISTRY : gcr.io/k8s-staging-kas-network-proxy
59
+ KIND_IMAGE : kindest/node${{ matrix.k8s }}
60
+ strategy :
61
+ fail-fast : false
62
+ matrix :
63
+ k8s : [ v1.27.11, v1.28.7, v1.29.2 ]
55
64
steps :
56
65
- name : Check out code
57
66
uses : actions/checkout@v4
66
75
chmod +x ./kind
67
76
sudo mv ./kind /usr/local/bin/kind
68
77
- name : Run e2e tests
69
- run : REGISTRY=github-workflow make test-e2e
78
+ run : make test-e2e
70
79
e2e :
71
80
name : e2e
72
81
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ TAG ?= $(shell git rev-parse HEAD)
54
54
DOCKER_CMD ?= docker
55
55
DOCKER_CLI_EXPERIMENTAL ?= enabled
56
56
PROXY_SERVER_IP ?= 127.0.0.1
57
+
58
+ KIND_IMAGE ?= kindest/node
57
59
# # --------------------------------------
58
60
# # Testing
59
61
# # --------------------------------------
@@ -82,7 +84,7 @@ test-integration: build
82
84
83
85
.PHONY : test-e2e
84
86
test-e2e : docker-build
85
- go test -mod=vendor ./e2e -race -agent-image ${AGENT_FULL_IMAGE} -$(TARGETARCH ) :${TAG} -server-image ${SERVER_FULL_IMAGE} -$(TARGETARCH ) :${TAG}
87
+ go test -mod=vendor ./e2e -race -agent-image ${AGENT_FULL_IMAGE} -$(TARGETARCH ) :${TAG} -server-image ${SERVER_FULL_IMAGE} -$(TARGETARCH ) :${TAG} -kind-image ${KIND_IMAGE}
86
88
87
89
# # --------------------------------------
88
90
# # Binaries
Original file line number Diff line number Diff line change 24
24
testenv env.Environment
25
25
agentImage = flag .String ("agent-image" , "" , "The proxy agent's docker image." )
26
26
serverImage = flag .String ("server-image" , "" , "The proxy server's docker image." )
27
+ kindImage = flag .String ("kind-image" , "kindest/node" , "Image to use for kind nodes." )
27
28
)
28
29
29
30
func TestMain (m * testing.M ) {
@@ -39,7 +40,7 @@ func TestMain(m *testing.M) {
39
40
40
41
testenv = env .New ()
41
42
kindClusterName := "kind-test"
42
- kindCluster := kind .NewCluster (kindClusterName )
43
+ kindCluster := kind .NewCluster (kindClusterName ). WithOpts ( kind . WithImage ( * kindImage ))
43
44
44
45
testenv .Setup (
45
46
envfuncs .CreateCluster (kindCluster , kindClusterName ),
You can’t perform that action at this time.
0 commit comments