Skip to content

Commit

Permalink
KUSTOMIZE = /usr/local/bin/kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseimakarau committed Nov 9, 2023
1 parent 0c6415d commit c62f1b3
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,11 @@ undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.


.PHONY: kustomize
KUSTOMIZE = $(shell pwd)/bin/kustomize
KUSTOMIZE = /usr/local/bin/kustomize
kustomize: ## Download kustomize locally if necessary.
ifeq (,$(wildcard $(KUSTOMIZE)))
ifeq (,$(shell which kustomize 2>/dev/null))
@{ \
set -e ;\
mkdir -p $(dir $(KUSTOMIZE)) ;\
curl -sSLo - https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.2.1/kustomize_v5.2.1_$(OS)_$(ARCH).tar.gz | \
tar xzf - -C bin/ ;\
}
else
KUSTOMIZE = $(shell which kustomize)
endif
endif
curl -sSLo - https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.2.1/kustomize_v5.2.1_$(OS)_$(ARCH).tar.gz
tar xzf - -C /usr/local/bin/
chmod +x $(KUSTOMIZE)

.PHONY: ansible-operator
ANSIBLE_OPERATOR = $(shell pwd)/bin/ansible-operator
Expand Down

0 comments on commit c62f1b3

Please sign in to comment.