File tree 7 files changed +21
-14
lines changed
cronjob-tutorial/testdata/project
getting-started/testdata/project
multiversion-tutorial/testdata/project
pkg/plugins/golang/v4/scaffolds/internal/templates
7 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
71
71
# - CERT_MANAGER_INSTALL_SKIP=true
72
72
.PHONY : test-e2e
73
73
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
74
- @command -v kind > /dev/null 2>&1 || { \
74
+ @command -v $( KIND ) > /dev/null 2>&1 || { \
75
75
echo " Kind is not installed. Please install Kind manually." ; \
76
76
exit 1; \
77
77
}
78
- @kind get clusters | grep -q ' kind' || { \
78
+ @$( KIND ) get clusters | grep -q ' kind' || { \
79
79
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
80
80
exit 1; \
81
81
}
@@ -169,6 +169,7 @@ $(LOCALBIN):
169
169
170
170
# # Tool Binaries
171
171
KUBECTL ?= kubectl
172
+ KIND ?= kind
172
173
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
173
174
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
174
175
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
68
.PHONY : test-e2e
69
69
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
- @command -v kind > /dev/null 2>&1 || { \
70
+ @command -v $( KIND ) > /dev/null 2>&1 || { \
71
71
echo " Kind is not installed. Please install Kind manually." ; \
72
72
exit 1; \
73
73
}
74
- @kind get clusters | grep -q ' kind' || { \
74
+ @$( KIND ) get clusters | grep -q ' kind' || { \
75
75
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
76
exit 1; \
77
77
}
@@ -165,6 +165,7 @@ $(LOCALBIN):
165
165
166
166
# # Tool Binaries
167
167
KUBECTL ?= kubectl
168
+ KIND ?= kind
168
169
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
169
170
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
170
171
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
71
71
# - CERT_MANAGER_INSTALL_SKIP=true
72
72
.PHONY : test-e2e
73
73
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
74
- @command -v kind > /dev/null 2>&1 || { \
74
+ @command -v $( KIND ) > /dev/null 2>&1 || { \
75
75
echo " Kind is not installed. Please install Kind manually." ; \
76
76
exit 1; \
77
77
}
78
- @kind get clusters | grep -q ' kind' || { \
78
+ @$( KIND ) get clusters | grep -q ' kind' || { \
79
79
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
80
80
exit 1; \
81
81
}
@@ -169,6 +169,7 @@ $(LOCALBIN):
169
169
170
170
# # Tool Binaries
171
171
KUBECTL ?= kubectl
172
+ KIND ?= kind
172
173
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
173
174
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
174
175
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -146,11 +146,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
146
146
# - CERT_MANAGER_INSTALL_SKIP=true
147
147
.PHONY: test-e2e
148
148
test-e2e: manifests generate fmt vet ## Run the e2e tests. Expected an isolated environment using Kind.
149
- @command -v kind >/dev/null 2>&1 || { \
149
+ @command -v $(KIND) >/dev/null 2>&1 || { \
150
150
echo "Kind is not installed. Please install Kind manually."; \
151
151
exit 1; \
152
152
}
153
- @kind get clusters | grep -q 'kind' || { \
153
+ @$(KIND) get clusters | grep -q 'kind' || { \
154
154
echo "No Kind cluster is running. Please start a Kind cluster before running the e2e tests."; \
155
155
exit 1; \
156
156
}
@@ -244,6 +244,7 @@ $(LOCALBIN):
244
244
245
245
## Tool Binaries
246
246
KUBECTL ?= kubectl
247
+ KIND ?= kind
247
248
KUSTOMIZE ?= $(LOCALBIN)/kustomize
248
249
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
249
250
ENVTEST ?= $(LOCALBIN)/setup-envtest
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
68
.PHONY : test-e2e
69
69
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
- @command -v kind > /dev/null 2>&1 || { \
70
+ @command -v $( KIND ) > /dev/null 2>&1 || { \
71
71
echo " Kind is not installed. Please install Kind manually." ; \
72
72
exit 1; \
73
73
}
74
- @kind get clusters | grep -q ' kind' || { \
74
+ @$( KIND ) get clusters | grep -q ' kind' || { \
75
75
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
76
exit 1; \
77
77
}
@@ -165,6 +165,7 @@ $(LOCALBIN):
165
165
166
166
# # Tool Binaries
167
167
KUBECTL ?= kubectl
168
+ KIND ?= kind
168
169
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
169
170
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
170
171
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
68
.PHONY : test-e2e
69
69
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
- @command -v kind > /dev/null 2>&1 || { \
70
+ @command -v $( KIND ) > /dev/null 2>&1 || { \
71
71
echo " Kind is not installed. Please install Kind manually." ; \
72
72
exit 1; \
73
73
}
74
- @kind get clusters | grep -q ' kind' || { \
74
+ @$( KIND ) get clusters | grep -q ' kind' || { \
75
75
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
76
exit 1; \
77
77
}
@@ -165,6 +165,7 @@ $(LOCALBIN):
165
165
166
166
# # Tool Binaries
167
167
KUBECTL ?= kubectl
168
+ KIND ?= kind
168
169
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
169
170
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
170
171
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
68
.PHONY : test-e2e
69
69
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
- @command -v kind > /dev/null 2>&1 || { \
70
+ @command -v $( KIND ) > /dev/null 2>&1 || { \
71
71
echo " Kind is not installed. Please install Kind manually." ; \
72
72
exit 1; \
73
73
}
74
- @kind get clusters | grep -q ' kind' || { \
74
+ @$( KIND ) get clusters | grep -q ' kind' || { \
75
75
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
76
exit 1; \
77
77
}
@@ -165,6 +165,7 @@ $(LOCALBIN):
165
165
166
166
# # Tool Binaries
167
167
KUBECTL ?= kubectl
168
+ KIND ?= kind
168
169
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
169
170
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
170
171
ENVTEST ?= $(LOCALBIN ) /setup-envtest
You can’t perform that action at this time.
0 commit comments