diff --git a/Makefile b/Makefile index 8d13b3602c7..b68175a80dc 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,7 @@ OPERATOR_SDK_VERSION ?= v1.24.1 GOLANGCI_LINT_VERSION ?= v1.54.0 # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. ENVTEST_K8S_VERSION = 1.24.2 +ENVTEST_PACKAGE_VERSION = v0.0.0-20240320141353-395cfc7486e6 CRD_REF_DOCS_VERSION = 0.0.11 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) @@ -344,7 +345,7 @@ TEST_SRC=./controllers/... ./tests/integration/features/... ./pkg/feature/... .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. $(ENVTEST): $(LOCALBIN) - test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest + test -s $(ENVTEST) || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_PACKAGE_VERSION) .PHONY: test test: unit-test e2e-test