Installing older version of kubernetes-helm with brew (Downgrading helm)
There might be many reason you may need to downgrade the helm installation version or install a specific version.
Some of the examples are :
- Output of
helm version
: client - v2.x.x, server v2.y.y.
Output ofkubectl version
: client :- v1.x.x, server:- v1.y.y - Other reason could be using service like jenkins-x which apparently doesn’t support helm3.
So, follow these simple steps to get the specific version of helm installed.
- Search on Github for the correct
kubernetes-helm.rb
file for the version I wanted (2.9.x in my case): https://github.com/Homebrew/homebrew-core/search?q=kubernetes-helm&type=Commits - Click the commit hash button (
78d6425
) - Open the
kubernetes-helm.rb
file and Click the “View” button - Click the “Raw” button
- And copy the url: https://raw.githubusercontent.com/Homebrew/homebrew-core/78d64252f30a12b6f4b3ce29686ab5e262eea812/Formula/kubernetes-helm.rb
Then run the following command once you have the url for the correct kubernetes-helm.rb
file
$ brew unlink kubernetes-helm
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/78d64252f30a12b6f4b3ce29686ab5e262eea812/Formula/kubernetes-helm.rb
$ brew switch kubernetes-helm 2.9.1
Hope this helps someone.
Btw going off-topic for all quarantined office people,
Recently, I switched from iOS to Android. And I was missing Apple’s Continuity feature. Where I could easily make or receive phone calls on Mac, get access OTPs, messages quickly on my Mac.
I noticed I was ending up landing social media or hacker-news :D spending hours every-time I picked up my phone for a call(there’re a lot in this work from home situation).
And then after spending a day, going through a lot of spam! I noticed this app on App Store called “Connecton”. I’m surprised why was it hard to find it.
Putting out loud, so that I can save someone’s time who needs this.