From 8387ba20419df99523edfc85709fbcea39a8997b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 17 Oct 2024 15:27:24 +0800 Subject: [PATCH] fix envtest version when latest need golang 1.23 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 384a7ea1f7..8eea81219e 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,8 @@ OPERATOR_SDK_VERSION ?= 1.29.0 CERTMANAGER_VERSION ?= 1.10.0 +ENVTEST_VERSION ?= release-0.18 + ifndef ignore-not-found ignore-not-found = false endif @@ -498,7 +500,7 @@ $(CONTROLLER_GEN): $(LOCALBIN) .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. $(ENVTEST): $(LOCALBIN) - @test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest + @test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION) CRDOC = $(shell pwd)/bin/crdoc .PHONY: crdoc