Skip to content

Commit f1369de

Browse files
committed
kubernetes-sigs/controller-runtime#3349 has updated golang to 1.25 in controller-runtime.
1 parent 933871a commit f1369de

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
@@ -52,6 +52,8 @@ IMG ?= $(DEFAULT_IMG)
5252
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5353
ENVTEST_K8S_VERSION = 1.31
5454

55+
SETUP_ENVTEST_VERSION ?= release-0.22
56+
5557
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
5658
ifeq (,$(shell go env GOBIN))
5759
GOBIN=$(shell go env GOPATH)/bin
@@ -205,7 +207,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
205207
.PHONY: envtest
206208
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
207209
$(ENVTEST): $(LOCALBIN)
208-
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
210+
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(SETUP_ENVTEST_VERSION)
209211

210212
.PHONY: operator-sdk
211213
operator-sdk: $(OPERATOR_SDK) ## Download operator-sdk locally if necessary.

0 commit comments

Comments
 (0)