Skip to content

Commit c385aba

Browse files
fix setup-envtest version to workaround kubernetes-sigs/controller-runtime#2744 (#87)
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent 7b69290 commit c385aba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
3232

3333
# Image URL to use all building/pushing image targets
3434
IMG ?= quay.io/devfile/registry-operator:next
35+
# ENVTEST_VERSION refers to the version of the setup-envtest binary to use
36+
ENVTEST_VERSION=v0.0.0-20240405143037-c25fe2f5ca0f
3537
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
3638
ENVTEST_K8S_VERSION = 1.26
3739
# Controller tools version number
@@ -259,7 +261,7 @@ $(KUSTOMIZE): $(LOCALBIN)
259261
.PHONY: envtest
260262
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
261263
$(ENVTEST): $(LOCALBIN)
262-
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) GOFLAGS="" go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
264+
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) GOFLAGS="" go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION)
263265

264266
# Generate bundle manifests and metadata, then validate generated files.
265267
.PHONY: bundle

0 commit comments

Comments
 (0)