From c385aba157f0f622c135513ffb22b0dd33ab519b Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Thu, 11 Apr 2024 18:26:03 -0400 Subject: [PATCH] fix setup-envtest version to workaround kubernetes-sigs/controller-runtime#2744 (#87) Signed-off-by: Michael Valdron --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f79773..ea4ef84 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL) # Image URL to use all building/pushing image targets IMG ?= quay.io/devfile/registry-operator:next +# ENVTEST_VERSION refers to the version of the setup-envtest binary to use +ENVTEST_VERSION=v0.0.0-20240405143037-c25fe2f5ca0f # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. ENVTEST_K8S_VERSION = 1.26 # Controller tools version number @@ -259,7 +261,7 @@ $(KUSTOMIZE): $(LOCALBIN) .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. $(ENVTEST): $(LOCALBIN) - test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) GOFLAGS="" go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest + test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) GOFLAGS="" go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION) # Generate bundle manifests and metadata, then validate generated files. .PHONY: bundle