Skip to content

Commit

Permalink
🐛 Fix installation command for arm64
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <kyukawa315@gmail.com>
  • Loading branch information
vankichi committed Nov 1, 2024
1 parent 467ab10 commit f15bfc6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
12 changes: 10 additions & 2 deletions Makefile.d/helm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ $(BINDIR)/helm:
helm-docs/install: $(BINDIR)/helm-docs

$(BINDIR)/helm-docs:
$(eval DARCH :=$(ARCH))
ifeq ($(ARCH),aarch64)
$(eval DARCH = $(shell echo arm64))
endif
mkdir -p $(BINDIR)
TAR_NAME=helm-docs_$(HELM_DOCS_VERSION)_$(UNAME)_$(ARCH).tar.gz \
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 @@ -155,9 +159,13 @@ $(ROOTDIR)/charts/vald-benchmark-operator/values.schema.json: \
yq/install: $(BINDIR)/yq

$(BINDIR)/yq:
$(eval DARCH :=$(ARCH))
ifeq ($(ARCH),aarch64)
$(eval DARCH = $(shell echo arm64))
endif
mkdir -p $(BINDIR)
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
6 changes: 5 additions & 1 deletion Makefile.d/k8s.mk
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,13 @@ k8s/monitoring/delete: \
telepresence/install: $(BINDIR)/telepresence

$(BINDIR)/telepresence:
$(eval DARCH :=$(ARCH))
ifeq ($(ARCH),aarch64)
$(eval DARCH = $(shell echo arm64))
endif
mkdir -p $(BINDIR)
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
6 changes: 5 additions & 1 deletion Makefile.d/kind.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
kind/install: $(BINDIR)/kind

$(BINDIR)/kind:
$(eval DARCH :=$(ARCH))
ifeq ($(ARCH),aarch64)
$(eval DARCH = $(shell echo arm64))
endif
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
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
6 changes: 5 additions & 1 deletion Makefile.d/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ $(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 :=$(ARCH))
ifeq ($(ARCH),aarch64)
$(eval DARCH = $(shell echo arm64))
endif
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 f15bfc6

Please sign in to comment.