Skip to content

Commit 82bf9a4

Browse files
committed
test: use make to create kind cluster instead of github action
Signed-off-by: Peter Wilcsinszky <[email protected]>
1 parent 9abd918 commit 82bf9a4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/e2e.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99

1010
env:
1111
GO_VERSION: '1.20'
12-
KIND_VERSION: 'v0.19.0'
13-
KIND_NODE_VERSION: 'v1.23.17@sha256:f77f8cf0b30430ca4128cc7cfafece0c274a118cd0cdb251049664ace0dee4ff'
1412
KUBECTL_VERSION: 'v1.24.1'
1513

1614
jobs:
@@ -58,15 +56,12 @@ jobs:
5856
with:
5957
version: ${{ env.KUBECTL_VERSION }}
6058

61-
- name: Set up KinD
62-
uses: engineerd/[email protected]
63-
with:
64-
version: "${{ env.KIND_VERSION }}"
65-
image: "kindest/node:${{ env.KIND_NODE_VERSION }}"
66-
6759
- name: Checkout code
6860
uses: actions/checkout@v3
6961

62+
- name: Set up KinD
63+
run: make kind-cluster
64+
7065
- name: Stern
7166
run: make stern && test -x bin/stern
7267

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ GOLANGCI_LINT_VERSION := v1.51.2
3636
KIND := ${BIN}/kind
3737
KIND_VERSION := v0.19.0
3838
KIND_IMAGE := kindest/node:v1.23.17@sha256:f77f8cf0b30430ca4128cc7cfafece0c274a118cd0cdb251049664ace0dee4ff
39+
KIND_CLUSTER := kind
3940

4041
KUBEBUILDER := ${BIN}/kubebuilder
4142
KUBEBUILDER_VERSION = v3.1.0
@@ -165,6 +166,10 @@ vet: ## Run go vet against code
165166
go vet ./...
166167
cd pkg/sdk && go vet ./...
167168

169+
.PHONY: kind-cluster
170+
kind-cluster: ${KIND}
171+
kind create cluster --name $(KIND_CLUSTER) --image $(KIND_IMAGE)
172+
168173
## =========================
169174
## == Tool dependencies ==
170175
## =========================

0 commit comments

Comments
 (0)