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 @@ -58,6 +58,8 @@ IMG ?= $(DEFAULT_IMG)
5858# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5959ENVTEST_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)
6264ifeq (,$(shell go env GOBIN) )
6365GOBIN =$(shell go env GOPATH) /bin
@@ -240,7 +242,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
240242.PHONY : envtest
241243envtest : $(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
246248OPERATOR_SDK ?= $(LOCALBIN ) /operator-sdk
You can’t perform that action at this time.
0 commit comments