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 @@ -56,6 +56,8 @@ IMG ?= $(DEFAULT_IMG)
5656# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5757ENVTEST_K8S_VERSION = 1.31
5858
59+ SETUP_ENVTEST_VERSION ?= release-0.22
60+
5961# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
6062ifeq (,$(shell go env GOBIN) )
6163GOBIN =$(shell go env GOPATH) /bin
@@ -230,7 +232,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
230232envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
231233$(ENVTEST ) : $(LOCALBIN )
232234 # TODO: revisit pinned version once https://github.com/kubernetes-sigs/controller-runtime/issues/2720 is fixed
233- GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
235+ GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( SETUP_ENVTEST_VERSION )
234236
235237.PHONY : ginkgo
236238ginkgo : $(GINKGO ) # # Download ginkgo locally if necessary.
You can’t perform that action at this time.
0 commit comments