Skip to content

Commit

Permalink
Fix installation command for arm64 (#2729)
Browse files Browse the repository at this point in the history
* 🐛 Fix installation command for arm64

Signed-off-by: vankichi <[email protected]>

* 🐛 Fix typo

Signed-off-by: vankichi <[email protected]>

* 🐛 Fix

Signed-off-by: vankichi <[email protected]>

---------

Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi authored Nov 1, 2024
1 parent 467ab10 commit 25c2220
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Makefile.d/helm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ helm-docs/install: $(BINDIR)/helm-docs

$(BINDIR)/helm-docs:
mkdir -p $(BINDIR)
TAR_NAME=helm-docs_$(HELM_DOCS_VERSION)_$(UNAME)_$(ARCH).tar.gz \
$(eval DARCH := $(subst aarch64,arm64,$(ARCH)))
TAR_NAME=helm-docs_$(HELM_DOCS_VERSION)_$(UNAME)_$(DARCH).tar.gz \
&& cd $(TEMP_DIR) \
&& curl -fsSL "https://github.com/norwoodj/helm-docs/releases/download/v$(HELM_DOCS_VERSION)/$${TAR_NAME}" -o "$(TEMP_DIR)/$${TAR_NAME}"\
&& tar xzvf "$(TEMP_DIR)/$${TAR_NAME}" \
Expand Down Expand Up @@ -156,8 +157,9 @@ yq/install: $(BINDIR)/yq

$(BINDIR)/yq:
mkdir -p $(BINDIR)
$(eval DARCH := $(subst aarch64,arm64,$(ARCH)))
cd $(TEMP_DIR) \
&& curl -fsSL https://github.com/mikefarah/yq/releases/download/$(YQ_VERSION)/yq_$(OS)_$(subst x86_64,amd64,$(shell echo $(ARCH) | tr '[:upper:]' '[:lower:]')) -o $(BINDIR)/yq \
&& curl -fsSL https://github.com/mikefarah/yq/releases/download/$(YQ_VERSION)/yq_$(OS)_$(subst x86_64,amd64,$(shell echo $(DARCH) | tr '[:upper:]' '[:lower:]')) -o $(BINDIR)/yq \
&& chmod a+x $(BINDIR)/yq

.PHONY: helm/schema/crd/all
Expand Down
3 changes: 2 additions & 1 deletion Makefile.d/k8s.mk
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,9 @@ telepresence/install: $(BINDIR)/telepresence

$(BINDIR)/telepresence:
mkdir -p $(BINDIR)
$(eval DARCH := $(subst aarch64,arm64,$(ARCH)))
cd $(TEMP_DIR) \
&& curl -fsSL "https://app.getambassador.io/download/tel2oss/releases/download/v$(TELEPRESENCE_VERSION)/telepresence-$(OS)-$(subst x86_64,amd64,$(shell echo $(ARCH) | tr '[:upper:]' '[:lower:]'))" -o $(BINDIR)/telepresence \
&& curl -fsSL "https://app.getambassador.io/download/tel2oss/releases/download/v$(TELEPRESENCE_VERSION)/telepresence-$(OS)-$(subst x86_64,amd64,$(shell echo $(DARCH) | tr '[:upper:]' '[:lower:]'))" -o $(BINDIR)/telepresence \
&& chmod a+x $(BINDIR)/telepresence

.PHONY: telepresence/swap/agent-ngt
Expand Down
3 changes: 2 additions & 1 deletion Makefile.d/kind.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ kind/install: $(BINDIR)/kind

$(BINDIR)/kind:
mkdir -p $(BINDIR)
curl -fsSL https://github.com/kubernetes-sigs/kind/releases/download/v$(KIND_VERSION)/kind-$(OS)-$(subst x86_64,amd64,$(shell echo $(ARCH) | tr '[:upper:]' '[:lower:]')) -o $(BINDIR)/kind
$(eval DARCH := $(subst aarch64,arm64,$(ARCH)))
curl -fsSL https://github.com/kubernetes-sigs/kind/releases/download/v$(KIND_VERSION)/kind-$(OS)-$(subst x86_64,amd64,$(shell echo $(DARCH) | tr '[:upper:]' '[:lower:]')) -o $(BINDIR)/kind
chmod a+x $(BINDIR)/kind

.PHONY: kind/start
Expand Down
3 changes: 2 additions & 1 deletion Makefile.d/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ $(BINDIR)/reviewdog:
kubectl/install: $(BINDIR)/kubectl

$(BINDIR)/kubectl:
curl -fsSL "https://dl.k8s.io/release/$(KUBECTL_VERSION)/bin/$(OS)/$(subst x86_64,amd64,$(shell echo $(ARCH) | tr '[:upper:]' '[:lower:]'))/kubectl" -o $(BINDIR)/kubectl
$(eval DARCH := $(subst aarch64,arm64,$(ARCH)))
curl -fsSL "https://dl.k8s.io/release/$(KUBECTL_VERSION)/bin/$(OS)/$(subst x86_64,amd64,$(shell echo $(DARCH) | tr '[:upper:]' '[:lower:]'))/kubectl" -o $(BINDIR)/kubectl
chmod a+x $(BINDIR)/kubectl

.PHONY: textlint/install
Expand Down

0 comments on commit 25c2220

Please sign in to comment.