From 460e97282e68830f46f46e61417af0bc39a0dd1a Mon Sep 17 00:00:00 2001 From: vankichi Date: Wed, 13 Nov 2024 11:52:50 +0900 Subject: [PATCH] :recycle: Change install helm command Signed-off-by: vankichi --- Makefile.d/helm.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.d/helm.mk b/Makefile.d/helm.mk index a665eda631..8429dc1a37 100644 --- a/Makefile.d/helm.mk +++ b/Makefile.d/helm.mk @@ -20,7 +20,12 @@ helm/install: $(BINDIR)/helm $(BINDIR)/helm: mkdir -p $(BINDIR) - curl -fsSL "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3" | HELM_INSTALL_DIR=$(BINDIR) bash + $(eval DARCH := $(subst aarch64,arm64,$(ARCH))) + TAR_NAME=helm-$(HELM_VERSION)-$(OS)-$(subst x86_64,amd64,$(shell echo $(DARCH) | tr '[:upper:]' '[:lower:]')).tar.gz \ + && cd $(TEMP_DIR) \ + && curl -fsSL "https://github.com/helm/helm/releases/download/$(HELM_VERSION)/$${TAR_NAME}" -o "$(TEMP_DIR)/$${TAR_NAME}" + && tar xzvf "$(TEMP_DIR)/$${TAR_NAME}" \ + && mv helm $(BINDIR)/helm .PHONY: helm-docs/install ## install helm-docs