You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+33-29Lines changed: 33 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,6 @@ vet: ## Run go vet against code.
61
61
test: manifests generate fmt vet setup-envtest ## Run tests.
62
62
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test -v $$(go list ./... | grep -v /e2e) -coverprofile cover.out
63
63
64
-
# TODO(user): To use a different vendor for e2e tests, modify the setup under 'tests/e2e'.
65
-
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
66
-
# CertManager is installed by default; skip with:
67
-
# - CERT_MANAGER_INSTALL_SKIP=true
68
64
.PHONY: test-e2e
69
65
test-e2e: manifests generate fmt vet ## Run the e2e tests. Expected an isolated environment using Kind.
70
66
@command -v kind >/dev/null 2>&1|| { \
@@ -75,7 +71,20 @@ test-e2e: manifests generate fmt vet ## Run the e2e tests. Expected an isolated
75
71
echo"No Kind cluster is running. Please start a Kind cluster before running the e2e tests.";\
76
72
exit 1;\
77
73
}
78
-
go test ./test/e2e/ -v -ginkgo.v
74
+
CERT_MANAGER_INSTALL_SKIP=true go test ./test/e2e/ -v -ginkgo.v
install: manifests ## Install CRDs into the K8s cluster specified in ~/.kube/config.
147
+
$(KUBECTL) apply -f deploy/crds/
145
148
146
149
.PHONY: uninstall
147
-
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
uninstall: manifests ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
undeploy: helm ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
0 commit comments