Add makefile
This commit is contained in:
parent
fc2c20901f
commit
502013bb5b
13
Makefile
Normal file
13
Makefile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
Loading…
Reference in New Issue
Block a user