File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22# Image URL to use all building/pushing image targets
33IMG ?= controller:latest
44# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5- ENVTEST_K8S_VERSION = 1.25.0
5+ ENVTEST_K8S_VERSION = 1.31.0
6+ # ENVTEST_VERSION refers to https://github.com/kubernetes-sigs/controller-runtime/tree/main/tools/setup-envtest
7+ ENVTEST_VERSION = release-0.19
68
79# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
810ifeq (,$(shell go env GOBIN) )
@@ -184,7 +186,7 @@ $(GOLINT): $(LOCALBIN)
184186.PHONY : envtest
185187envtest : $(ENVTEST ) # # Download envtest-setup locally if necessary.
186188$(ENVTEST ) : $(LOCALBIN )
187- test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
189+ test -s $(LOCALBIN ) /setup-envtest || GOBIN=$(LOCALBIN ) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$( ENVTEST_VERSION )
188190 ENVTESTDIR=$$($(ENVTEST ) use $(ENVTEST_K8S_VERSION ) --bin-dir $(LOCALBIN ) -p path) ; \
189191 chmod -R u+w $$ ENVTESTDIR ; \
190192 rm -f $(LOCALBIN ) /k8s/current ; \
You can’t perform that action at this time.
0 commit comments