Skip to content

Commit b5ad594

Browse files
fix: Fix Kustomize installation (#700)
Signed-off-by: Christopher Pitstick <cpitstick@lat.ai>
1 parent 2c18afc commit b5ad594

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,11 @@ KUSTOMIZE_VERSION ?= v5.4.1
214214
CONTROLLER_TOOLS_VERSION ?= v0.15.0
215215
CRDOC_VERSION ?= v0.6.2
216216

217-
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
218217
.PHONY: kustomize
219218
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
220219
$(KUSTOMIZE): $(LOCALBIN)
221220
[ -e "$(KUSTOMIZE)" ] && rm -rf "$(KUSTOMIZE)" || true
222-
curl -s $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN)
221+
test -s ${LOCALBIN}/kustomize || GOBIN=${LOCALBIN} GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v5@$(KUSTOMIZE_VERSION)
223222

224223
.PHONY: controller-gen
225224
controller-gen: $(CONTROLLER_GEN) ## Download controller-gen locally if necessary.

0 commit comments

Comments
 (0)