How to install an old release of Helm on OSX using brew

Sometimes, your Kubernetes server needs an old version of helm installed.

On your host, you may have the latest helm release and you will have this kind of error message: Error: incompatible versions client[v2.9.0] server[v2.8.2]

You will need to downgrade the version installed on your mac if you don't want to upgrade the helm on your Kubernetes server but how?

Now that you had the url for the correct kubernetes-helm.rb file, ran the following:

$ brew unlink kubernetes-helm
$ brew install https://github.com/Homebrew/homebrew-core/blob/560afd4e62f4b84113de9b27626325ded28abb87/Formula/kubernetes-helm.rb
$ brew switch kubernetes-helm 2.15.0