shoebill-operator/Makefile

14 lines
581 B
Makefile
Raw Permalink Normal View History

2023-12-24 17:37:46 +00:00
ENVTEST_K8S_VERSION = 1.28.0
# ---------------------------------------------------------------------
# -- A path to store binaries that are used in the Makefile
# ---------------------------------------------------------------------
LOCALBIN ?= $(shell pwd)/bin
$(LOCALBIN):
mkdir -p $(LOCALBIN)
.PHONY: envtest
envtest: ## Download envtest-setup locally if necessary.
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
${LOCALBIN}/setup-envtest use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path