Skip to content

Commit

Permalink
fix(makefile) Use kustomize install script instead of downloading tar
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Jardin <sebastien.jardin@corp.ovh.com>
  • Loading branch information
Sebastien Jardin committed Feb 7, 2020
1 parent 09557e4 commit d1e2cff
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,8 @@ endif
kustomize:
ifeq (, $(shell which kustomize))
# https://github.com/kubernetes-sigs/kustomize/blob/master/docs/INSTALL.md
curl -sSL https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest \
| grep browser_download \
| grep $(shell go env GOOS) \
| cut -d '"' -f 4 \
| xargs curl -sSL \
| tar -xz -C /tmp/
mv /tmp/kustomize $(KUSTOMIZE)
curl -s https://raw.githubusercontent.com/kubernetes-sigs/kustomize/04bfb3e94d0a4b740dcb426c23018cb041c8398d/hack/install_kustomize.sh | bash
mv ./kustomize $(KUSTOMIZE)
chmod u+x $(KUSTOMIZE)
KUSTOMIZE=$(GOBIN)/kustomize
else
Expand Down

0 comments on commit d1e2cff

Please sign in to comment.