From 519d8b0610fe2031707a6636102e7fb42bad9912 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 14 Oct 2025 10:30:40 -0400 Subject: [PATCH] Use setup-envtest@release-0.22 kubernetes-sigs/controller-runtime#3349 has updated golang to 1.25 in controller-runtime. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5f5de6f6..688447b6 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,8 @@ IMG ?= $(DEFAULT_IMG) # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. ENVTEST_K8S_VERSION = 1.31 +SETUP_ENVTEST_VERSION ?= release-0.22 + # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) GOBIN=$(shell go env GOPATH)/bin @@ -237,7 +239,7 @@ $(CONTROLLER_GEN): $(LOCALBIN) .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 $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(SETUP_ENVTEST_VERSION) .PHONY: ginkgo ginkgo: $(GINKGO) ## Download ginkgo locally if necessary.