Install helm 2 and helm 3 on the same Mac

I’m working on a project that we would like to get helm 3 for our client. There is default option to upgrade helm 2 to helm 3. If you are using brew, there is a brew upgrade option available that you can leverage.

But that is not my case, I need helm version 2 and version 3 both installed on my laptop. So my plan is to use “helm” command with the default brew installed version 2. and use “helmv3” to use the helm version 3.

Firstly, you need to download the binary from Github and unzip it. https://github.com/helm/helm/releases

Once you have the binary, in this case, I have it in my ~/download folder. copy it into the bin folder.

cp ~/Downloads/darwin-amd64/helm /usr/local/bin/helmv3

if you run “helmv3” command not, you will get the following error.

helm cannot be opened because the developer cannot be verified

To solve the above error, you need to go to Security & Privacy under the Preference. Go to General > Allow apps downloaded from, And Click Allow Anyway for helmv3

After this, you “helmv3” command will work. I found this error on Mac 10.15 Catalina. And it solve the problem. Now I have helm in two version running on the same Mac.

helmv3 version
version.BuildInfo{Version:"v3.0.2", GitCommit:"19e47ee3283ae98139d98460de796c1be1e3975f", GitTreeState:"clean", GoVersion:"go1.13.5"}