Check for Available Helm Chart Updates
Shea Stewart
Technologist working in Platform & Customer Engineering Capacities @ RunWhen
Managing #helm Chart versions can be a bit of an interesting process... if you first want to test out a chart, it's very likely that you won't hard code the version. You're just trying it out, right? Maybe it's just for dev/test? And then the chart slips out of dev/test and you are reminded of this mistake when some form of Helm controller (in the case of this article, #FluxCD) automatically upgrades the chart and something breaks. At this point, every chart you deploy will likely have a version attached to it. Buried in a manifest, and possibly forgotten about until, again, something breaks.
Great, so now all of your Helm Charts are lovingly locked down to a specific version, and your platform or software update process now to regularly check for chart updates. You know, security and reliability and things.
This one-liner helps:
---
Ugly Command Name: Check for Available Helm Chart Updates
What does it do?
This command will fetch each Helm Chart name and version inside of a namespace (if manged by FluxCD), and uses the Helm CLI to determine if there is an update available.
When would you use it?
In many cases our Helm Charts have not been updated in a while, and keeping our software and infrastructure components up to date is key task in maintaining service reliability. Rather than having to manually audit every GitOps HelmChart manifest and then manually compare this to each upstream repo, this command can quickly provide and audit of what is deployed and what should be upgraded.
This command is specifically focused on FluxCD managed Helm Charts.
领英推荐
What is the command?
Please view the GitHub Gist below to find the code snippet. Due to a limitation with LinkedIn, it does not accept some code in the code snippet and breaks the Article feature :-/
What is some sample output?
Release: argo-cd | Chart: flux-system/argo-cd | Installed Version: 5.29.1 | Available Update: True | Available Version: 5.42.1
Release: vault | Chart: flux-system/vault | Installed Version: 0.23.0 | Available Update: True | Available Version: 0.25.0
What does it need?
If you would like this command tailored for your environment and ready to copy & paste, this command has been added to the open source library of commands available through RunWhen Local. Check it out here: https://docs.runwhen.com/public/runwhen-local/getting-started/running-locally
Find an example of the command here: https://runwhen-local.sandbox.runwhen.com/vault/vault-Helm-Release-Health/
Have an ugly command to share? Collaborate with us on GitHub with issues or discussions
Senior software Engineer
1 年Well explained ?? Shea Stewart (He/Him)