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
# Phony prerequisite for targets that rely on the go build cache to determine staleness.
@@ -64,24 +67,12 @@ vet:
64
67
all: test build
65
68
66
69
test: clean cover.out
67
-
68
-
unit: kubebuilder
70
+
.PHONY: unit
71
+
KUBEBUILDER_ASSETS ?= $(shell$(SETUP_ENVTEST) use -p path $(ENVTEST_KUBE_VERSION))
72
+
unit:
73
+
@echo "Running unit tests with setup_envtest for kubernetes $(ENVTEST_KUBE_VERSION)"
69
74
KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS) go test$(MOD_FLAGS)$(SPECIFIC_UNIT_TEST) -tags "json1" -race -count=1 ./pkg/... ./test/e2e/split/...
70
75
71
-
# Ensure kubectl installed before continuing
72
-
KUBEBUILDER_ASSETS_ERR := not detected in $(KUBEBUILDER_ASSETS), to override the assets path set the KUBEBUILDER_ASSETS environment variable, for install instructions see https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest
0 commit comments