Hey Helm users! I'm curious about how you all approach testing your Helm charts. Do you have a specific testing framework or methodology in place for unit testing? How reliable do you find it?
5 Answers
Testing declarative code can be tricky. We focus on ensuring the charts can still generate properly. We add the output to our git repo, so any changes are visible in the PRs.
Check out the GitHub repo for helm-unittest! It’s a solid starting point for testing your Helm charts. It might have what you’re looking for.
We usually just run a basic helm template with all our value files to check the output. It’s pretty straightforward and doesn't need any extra plugins, which makes it easy to set up.
When developing Helm charts, I've used Bats for testing. It can be a bit finicky and ugly, but it gets the job done by asserting that the correct resources are generated.
Absolutely! We utilize Terratest for our unit testing, and it's been a game changer for us. It integrates really well with our operational testing as well.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically