Getting started¶
Chainsaw is a tool primarily developed to run end-to-end tests in Kubernetes clusters.
It is meant to test Kubernetes operators work as expected by running a sequence of steps and asserting various conditions.
Why we made it?¶
While developing Kyverno we need to run end-to-end tests to make sure our admission controller works as expected.
A typical Kyverno end-to-end test
Kyverno can validate, mutate and generate resources based on policies installed in a cluster and a typical test is:
- Create a policy
- Create a resource
- Check that Kyverno acted as expected
- Cleanup and move to the next test
How to use it?¶
Chainsaw is built with CI tools in mind - you only really need to download and execute it in your build script.
However, installing it on your local machine is entirely possible.