File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ IMG ?= controller:latest
5555# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5656ENVTEST_K8S_VERSION = 1.31
5757
58+ SETUP_ENVTEST_VERSION ?= release-0.22
59+
5860# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
5961ifeq (,$(shell go env GOBIN) )
6062GOBIN =$(shell go env GOPATH) /bin
@@ -218,7 +220,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
218220.PHONY : envtest
219221envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
220222$(ENVTEST ) : $(LOCALBIN )
221- test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
223+ test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( SETUP_ENVTEST_VERSION )
222224
223225.PHONY : operator-sdk
224226OPERATOR_SDK ?= $(LOCALBIN ) /operator-sdk
You can’t perform that action at this time.
0 commit comments