From b8a1d9cfd715f00a39f5263eccf5bf64ebb9cab3 Mon Sep 17 00:00:00 2001 From: Jose Rojas <39174181+jarojasm95@users.noreply.github.com> Date: Wed, 15 May 2024 13:35:31 -0600 Subject: [PATCH] try to handle arm64 for macos --- scripts/infra_k8s_check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/infra_k8s_check.sh b/scripts/infra_k8s_check.sh index 6a6d435..2e70946 100755 --- a/scripts/infra_k8s_check.sh +++ b/scripts/infra_k8s_check.sh @@ -310,7 +310,7 @@ function install_kubectl_win(){ install_url_tgz "kubectl.exe" "kubernetes/client/bin/kubectl.exe" "$url" } function install_kubectl_mac(){ - typeset url="https://dl.k8s.io/v${VERSION_KUBECTL}/kubernetes-client-darwin-amd64.tar.gz" + typeset url="https://dl.k8s.io/v${VERSION_KUBECTL}/kubernetes-client-darwin-$(uname -m).tar.gz" install_url_tgz "kubectl" "kubernetes/client/bin/kubectl" "$url" } function install_kubectl_alpine(){ @@ -329,7 +329,7 @@ function install_helm_win(){ install_url_zip "helm.exe" "windows-amd64/helm.exe" "$url" } function install_helm_mac(){ - typeset url="https://get.helm.sh/helm-v${VERSION_HELM}-darwin-amd64.tar.gz" + typeset url="https://get.helm.sh/helm-v${VERSION_HELM}-darwin-$(uname -m).tar.gz" install_url_tgz "helm" "darwin-amd64/helm" "$url" } function install_helm_alpine(){