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 @@ -69,17 +69,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
69
69
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
70
70
# CertManager is installed by default; skip with:
71
71
# - CERT_MANAGER_INSTALL_SKIP=true
72
+ KIND_CLUSTER ?= kind
72
73
.PHONY : test-e2e
73
74
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
74
75
@command -v $(KIND ) > /dev/null 2>&1 || { \
75
76
echo " Kind is not installed. Please install Kind manually." ; \
76
77
exit 1; \
77
78
}
78
- @$(KIND ) get clusters | grep -q ' kind ' || { \
79
+ @$(KIND ) get clusters | grep -q ' $(KIND_CLUSTER) ' || { \
79
80
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
80
81
exit 1; \
81
82
}
82
- go test ./test/e2e/ -v -ginkgo.v
83
+ KIND_CLUSTER= $( KIND_CLUSTER ) go test ./test/e2e/ -v -ginkgo.v
83
84
84
85
.PHONY : lint
85
86
lint : golangci-lint # # Run golangci-lint linter
Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
65
65
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
66
66
# CertManager is installed by default; skip with:
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
+ KIND_CLUSTER ?= kind
68
69
.PHONY : test-e2e
69
70
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
71
@command -v $(KIND ) > /dev/null 2>&1 || { \
71
72
echo " Kind is not installed. Please install Kind manually." ; \
72
73
exit 1; \
73
74
}
74
- @$(KIND ) get clusters | grep -q ' kind ' || { \
75
+ @$(KIND ) get clusters | grep -q ' $(KIND_CLUSTER) ' || { \
75
76
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
77
exit 1; \
77
78
}
78
- go test ./test/e2e/ -v -ginkgo.v
79
+ KIND_CLUSTER= $( KIND_CLUSTER ) go test ./test/e2e/ -v -ginkgo.v
79
80
80
81
.PHONY : lint
81
82
lint : golangci-lint # # Run golangci-lint linter
Original file line number Diff line number Diff line change @@ -69,17 +69,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
69
69
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
70
70
# CertManager is installed by default; skip with:
71
71
# - CERT_MANAGER_INSTALL_SKIP=true
72
+ KIND_CLUSTER ?= kind
72
73
.PHONY : test-e2e
73
74
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
74
75
@command -v $(KIND ) > /dev/null 2>&1 || { \
75
76
echo " Kind is not installed. Please install Kind manually." ; \
76
77
exit 1; \
77
78
}
78
- @$(KIND ) get clusters | grep -q ' kind ' || { \
79
+ @$(KIND ) get clusters | grep -q ' $(KIND_CLUSTER) ' || { \
79
80
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
80
81
exit 1; \
81
82
}
82
- go test ./test/e2e/ -v -ginkgo.v
83
+ KIND_CLUSTER= $( KIND_CLUSTER ) go test ./test/e2e/ -v -ginkgo.v
83
84
84
85
.PHONY : lint
85
86
lint : golangci-lint # # Run golangci-lint linter
Original file line number Diff line number Diff line change @@ -144,17 +144,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
144
144
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
145
145
# CertManager is installed by default; skip with:
146
146
# - CERT_MANAGER_INSTALL_SKIP=true
147
+ KIND_CLUSTER ?= kind
147
148
.PHONY: test-e2e
148
149
test-e2e: manifests generate fmt vet ## Run the e2e tests. Expected an isolated environment using Kind.
149
150
@command -v $(KIND) >/dev/null 2>&1 || { \
150
151
echo "Kind is not installed. Please install Kind manually."; \
151
152
exit 1; \
152
153
}
153
- @$(KIND) get clusters | grep -q 'kind ' || { \
154
+ @$(KIND) get clusters | grep -q '$(KIND_CLUSTER) ' || { \
154
155
echo "No Kind cluster is running. Please start a Kind cluster before running the e2e tests."; \
155
156
exit 1; \
156
157
}
157
- go test ./test/e2e/ -v -ginkgo.v
158
+ KIND_CLUSTER=$(KIND_CLUSTER) go test ./test/e2e/ -v -ginkgo.v
158
159
159
160
.PHONY: lint
160
161
lint: golangci-lint ## Run golangci-lint linter
Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
65
65
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
66
66
# CertManager is installed by default; skip with:
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
+ KIND_CLUSTER ?= kind
68
69
.PHONY : test-e2e
69
70
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
71
@command -v $(KIND ) > /dev/null 2>&1 || { \
71
72
echo " Kind is not installed. Please install Kind manually." ; \
72
73
exit 1; \
73
74
}
74
- @$(KIND ) get clusters | grep -q ' kind ' || { \
75
+ @$(KIND ) get clusters | grep -q ' $(KIND_CLUSTER) ' || { \
75
76
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
77
exit 1; \
77
78
}
78
- go test ./test/e2e/ -v -ginkgo.v
79
+ KIND_CLUSTER= $( KIND_CLUSTER ) go test ./test/e2e/ -v -ginkgo.v
79
80
80
81
.PHONY : lint
81
82
lint : golangci-lint # # Run golangci-lint linter
Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
65
65
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
66
66
# CertManager is installed by default; skip with:
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
+ KIND_CLUSTER ?= kind
68
69
.PHONY : test-e2e
69
70
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
71
@command -v $(KIND ) > /dev/null 2>&1 || { \
71
72
echo " Kind is not installed. Please install Kind manually." ; \
72
73
exit 1; \
73
74
}
74
- @$(KIND ) get clusters | grep -q ' kind ' || { \
75
+ @$(KIND ) get clusters | grep -q ' $(KIND_CLUSTER) ' || { \
75
76
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
77
exit 1; \
77
78
}
78
- go test ./test/e2e/ -v -ginkgo.v
79
+ KIND_CLUSTER= $( KIND_CLUSTER ) go test ./test/e2e/ -v -ginkgo.v
79
80
80
81
.PHONY : lint
81
82
lint : golangci-lint # # Run golangci-lint linter
Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
65
65
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
66
66
# CertManager is installed by default; skip with:
67
67
# - CERT_MANAGER_INSTALL_SKIP=true
68
+ KIND_CLUSTER ?= kind
68
69
.PHONY : test-e2e
69
70
test-e2e : manifests generate fmt vet # # Run the e2e tests. Expected an isolated environment using Kind.
70
71
@command -v $(KIND ) > /dev/null 2>&1 || { \
71
72
echo " Kind is not installed. Please install Kind manually." ; \
72
73
exit 1; \
73
74
}
74
- @$(KIND ) get clusters | grep -q ' kind ' || { \
75
+ @$(KIND ) get clusters | grep -q ' $(KIND_CLUSTER) ' || { \
75
76
echo " No Kind cluster is running. Please start a Kind cluster before running the e2e tests." ; \
76
77
exit 1; \
77
78
}
78
- go test ./test/e2e/ -v -ginkgo.v
79
+ KIND_CLUSTER= $( KIND_CLUSTER ) go test ./test/e2e/ -v -ginkgo.v
79
80
80
81
.PHONY : lint
81
82
lint : golangci-lint # # Run golangci-lint linter
You can’t perform that action at this time.
0 commit comments