Skip to content

Commit 68b509a

Browse files
authored
pin envtest version to fix pipeline
Once we have upgraded to Go 1.24, then we can upgrade to envtest latest release-0.20. See also: kubernetes-sigs/controller-runtime#3181
1 parent fb0069c commit 68b509a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# Image URL to use all building/pushing image targets
33
IMG ?= 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)
810
ifeq (,$(shell go env GOBIN))
@@ -184,7 +186,7 @@ $(GOLINT): $(LOCALBIN)
184186
.PHONY: envtest
185187
envtest: $(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 ;\

0 commit comments

Comments
 (0)