Skip to content

Instantly share code, notes, and snippets.

@yashbhutwala
Created November 8, 2019 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashbhutwala/ccc3d4eb0c5cdd51490c8a6a4bf7838c to your computer and use it in GitHub Desktop.
Save yashbhutwala/ccc3d4eb0c5cdd51490c8a6a4bf7838c to your computer and use it in GitHub Desktop.
Install Helm v3-rc.3 on macOS darwin amd64
#!/bin/bash
set -eou pipefail
#set helm version
helmVersion=helm-v3.0.0-rc.3-darwin-amd64.tar.gz
#download helm version
wget https://get.helm.sh/$helmVersion
tar xvzf $helmVersion
#mv helm3 binary to local tmp folder
if [[ -e /usr/local/bin/tmp ]] ; then echo "tmp folder already exists" ; else mkdir /usr/local/bin/tmp ; fi
mv darwin-amd64/helm /usr/local/bin/tmp/helm
#TEMPORARY export $HELM_HOME so you don't overwrite Helm2 ~/.helm/
export HELM_HOME=/usr/local/bin/tmp/helm3
#set temp alias
h3=/usr/local/bin/tmp/helm
#add alias to .zshrc or .bashrc
echo "alias h3=/usr/local/bin/tmp/helm" >> ~/.zshrc
# echo "alias h3=/usr/local/bin/tmp/helm" >> ~/.bashrc
# cleanup
rm -rf $helmVersion
rm -rf darwin-amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment