From c62f1b3e3e39bb7cf343360cb7c64fb6733a980e Mon Sep 17 00:00:00 2001 From: Aliaksei Makarau Date: Thu, 9 Nov 2023 10:03:36 +0100 Subject: [PATCH] KUSTOMIZE = /usr/local/bin/kustomize --- Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 310cb701c..49f614b43 100644 --- a/Makefile +++ b/Makefile @@ -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