File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
env :
11
11
GO_VERSION : ' 1.20'
12
- KIND_VERSION : ' v0.19.0'
13
- KIND_NODE_VERSION : ' v1.23.17@sha256:f77f8cf0b30430ca4128cc7cfafece0c274a118cd0cdb251049664ace0dee4ff'
14
12
KUBECTL_VERSION : ' v1.24.1'
15
13
16
14
jobs :
@@ -58,15 +56,12 @@ jobs:
58
56
with :
59
57
version : ${{ env.KUBECTL_VERSION }}
60
58
61
- - name : Set up KinD
62
-
63
- with :
64
- version : " ${{ env.KIND_VERSION }}"
65
- image : " kindest/node:${{ env.KIND_NODE_VERSION }}"
66
-
67
59
- name : Checkout code
68
60
uses : actions/checkout@v3
69
61
62
+ - name : Set up KinD
63
+ run : make kind-cluster
64
+
70
65
- name : Stern
71
66
run : make stern && test -x bin/stern
72
67
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ GOLANGCI_LINT_VERSION := v1.51.2
36
36
KIND := ${BIN}/kind
37
37
KIND_VERSION := v0.19.0
38
38
KIND_IMAGE := kindest/node:v1.23.17@sha256:f77f8cf0b30430ca4128cc7cfafece0c274a118cd0cdb251049664ace0dee4ff
39
+ KIND_CLUSTER := kind
39
40
40
41
KUBEBUILDER := ${BIN}/kubebuilder
41
42
KUBEBUILDER_VERSION = v3.1.0
@@ -165,6 +166,10 @@ vet: ## Run go vet against code
165
166
go vet ./...
166
167
cd pkg/sdk && go vet ./...
167
168
169
+ .PHONY : kind-cluster
170
+ kind-cluster : ${KIND}
171
+ kind create cluster --name $(KIND_CLUSTER ) --image $(KIND_IMAGE )
172
+
168
173
# # =========================
169
174
# # == Tool dependencies ==
170
175
# # =========================
You can’t perform that action at this time.
0 commit comments