k8wiz
Kyverno
Easy
Testing

What does kyverno test do when an actual policy result doesn't match the expected one?

Select your answer:

Show answer and explanation

Answer: It exits with a non-zero status

Explanation

The CLI marks the mismatched row as failed, prints a summary with the failure count and returns an error, so the process exits non-zero. That's what lets a CI job fail when a policy change breaks an expected result. It never changes the test file.

Read more about Kyverno