Test Your Helm Charts
My team publishes a shared helm chart “base” for our shared services to consume.
We needed to ensure we don’t release broken charts.
So, we write unit tests for our helm charts with Gruntwork’s library.
I don’t think there’s enough value in doing integration tests for helm charts yet. But I’ve already got a lot of value from having basic unit tests on our branching logic.
For example, if I have a value that will conditionally create a resource, I’ll write a simple test with basic assertions.
If only one service consumes a helm chart, there might not be enough value in writing tests for your charts.
The test suite has helped me catch blunders where linting wouldn’t have.
Master GitHub Actions with a Senior Infrastructure Engineer
As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.
Not sure yet? Check out the archive.
Unsubscribe at any time.