Skip to content

Commit

Permalink
Makefile: hardcode version of setup-envtest
Browse files Browse the repository at this point in the history
  • Loading branch information
djoshy committed Mar 25, 2024
1 parent d9ffefd commit f2ca04c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,16 @@ go-deps:
chmod +x ./vendor/k8s.io/code-generator/generate-groups.sh
chmod +x ./vendor/k8s.io/code-generator/generate-internal-groups.sh


# Always use a version of setup-envtest that matches the MCO's kube version
# Update this along with every kube bump the MCO does
SETUP_ENVTEST := $(shell command -v setup-envtest 2> /dev/null)
install-setup-envtest:
ifdef SETUP_ENVTEST
@echo "Found setup-envtest"
else
@echo "Installing setup-envtest"
go install -mod= sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
go install -mod= sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20240315194348-5aaf1190f880
endif

GO_JUNIT_REPORT := $(shell command -v go-junit-report 2> /dev/null)
Expand Down

0 comments on commit f2ca04c

Please sign in to comment.