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.

Join the 80/20 DevOps Newsletter

If you're an engineering leader or developer, you should subscribe to my 80/20 DevOps Newsletter. Give me 1 minute of your day, and I'll teach you essential DevOps skills. I cover topics like Kubernetes, AWS, Infrastructure as Code, and more.

Not sure yet? Check out the archive.

Unsubscribe at any time.