From 843e7e5a3895061b5c5599f4dd5d420aff16fec0 Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Mon, 26 Aug 2024 12:47:03 +0200 Subject: [PATCH] test: add operator namespace variable for unit-test (#1204) Signed-off-by: Wen Zhou --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f85e0f29806..e4a2bb943e4 100644 --- a/Makefile +++ b/Makefile @@ -362,7 +362,7 @@ test: unit-test e2e-test .PHONY: unit-test unit-test: envtest - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $(TEST_SRC) -v -coverprofile cover.out + OPERATOR_NAMESPACE=$(OPERATOR_NAMESPACE) KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $(TEST_SRC) -v -coverprofile cover.out CLEANFILES += cover.out .PHONY: e2e-test