Skip to content

Commit

Permalink
try to handle arm64 for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jarojasm95 committed May 15, 2024
1 parent 00fe159 commit b8a1d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/infra_k8s_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand All @@ -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(){
Expand Down

0 comments on commit b8a1d9c

Please sign in to comment.