Skip to content

Commit 8cf7b62

Browse files
committed
kubernetes-sigs/controller-runtime#3349 has updated golang to 1.25 in controller-runtime.
1 parent 98abaab commit 8cf7b62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ IMG ?= $(DEFAULT_IMG)
5757
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5858
ENVTEST_K8S_VERSION = 1.31
5959

60+
SETUP_ENVTEST_VERSION ?= release-0.22
61+
6062
# Set minimum Go version
6163
GOTOOLCHAIN_VERSION ?= go1.24.0
6264

@@ -235,7 +237,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
235237
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
236238
$(ENVTEST): $(LOCALBIN)
237239
# TODO: revisit pinned version once https://github.com/kubernetes-sigs/controller-runtime/issues/2720 is fixed
238-
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
240+
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(SETUP_ENVTEST_VERSION)
239241

240242
.PHONY: ginkgo
241243
ginkgo: $(GINKGO) ## Download ginkgo locally if necessary.

0 commit comments

Comments
 (0)