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 @@ -24,6 +24,8 @@ DOCKER_CMD ?= docker
2424# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
2525ENVTEST_K8S_VERSION = 1.31.0
2626
27+ SETUP_ENVTEST_VERSION ?= release-0.21
28+
2729# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
2830ifeq (,$(shell go env GOBIN) )
2931GOBIN =$(shell go env GOPATH) /bin
@@ -114,7 +116,7 @@ GOLANGCILINT_VERSION ?= v1.64.8
114116.PHONY : envtest
115117envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
116118$(ENVTEST ) : | $(LOCALBIN )
117- GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
119+ GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( SETUP_ENVTEST_VERSION )
118120
119121.PHONY : golangci-lint
120122golangci-lint : $(GOLANGCILINT ) # # Download golangci-lint locally if necessary.
You can’t perform that action at this time.
0 commit comments