From b5ad5943cc0edf4298efa571a50482f8991314e9 Mon Sep 17 00:00:00 2001 From: cpitstick-latai Date: Tue, 30 Jul 2024 11:59:14 -0400 Subject: [PATCH] fix: Fix Kustomize installation (#700) Signed-off-by: Christopher Pitstick --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 64ff675f1..4d4e4b7e6 100644 --- a/Makefile +++ b/Makefile @@ -214,12 +214,11 @@ KUSTOMIZE_VERSION ?= v5.4.1 CONTROLLER_TOOLS_VERSION ?= v0.15.0 CRDOC_VERSION ?= v0.6.2 -KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" .PHONY: kustomize kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. $(KUSTOMIZE): $(LOCALBIN) [ -e "$(KUSTOMIZE)" ] && rm -rf "$(KUSTOMIZE)" || true - curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN) + test -s ${LOCALBIN}/kustomize || GOBIN=${LOCALBIN} GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v5@$(KUSTOMIZE_VERSION) .PHONY: controller-gen controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.