Skip to content

Commit

Permalink
/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 0f8f358
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,10 @@ undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.
.PHONY: kustomize
KUSTOMIZE = $(shell pwd)/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 -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.2.1/kustomize_v5.2.1_$(OS)_$(ARCH).tar.gz -o kustomize-linux.tar.gz
tar -zxf kustomize-linux.tar.gz -C /usr/local/bin kustomize
chmod a+x /usr/local/bin/kustomize
rm -f kustomize-linux.tar.gz

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

0 comments on commit 0f8f358

Please sign in to comment.