Skip to content

Commit ee92284

Browse files
abaysClaude
authored andcommitted
kubernetes-sigs/controller-runtime#3349 has updated golang to 1.25 in controller-runtime. Co-authored-by: Claude <[email protected]>
1 parent 44946e6 commit ee92284

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

61+
SETUP_ENVTEST_VERSION ?= release-0.22
62+
6163
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6264
ifeq (,$(shell go env GOBIN))
6365
GOBIN=$(shell go env GOPATH)/bin
@@ -240,7 +242,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
240242
.PHONY: envtest
241243
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
242244
$(ENVTEST): $(LOCALBIN)
243-
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
245+
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(SETUP_ENVTEST_VERSION)
244246

245247
.PHONY: operator-sdk
246248
OPERATOR_SDK ?= $(LOCALBIN)/operator-sdk

0 commit comments

Comments
 (0)