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.
More easy Kyverno questions
- In a kyverno-test.yaml file, which expected result do you write for a resource the policy should block?
- What is Kyverno?
- Which Kubernetes resource type does Kyverno use to define policies?
- What are the three main types of rules in Kyverno policies?
- Which command is used to install Kyverno in a Kubernetes cluster?
- What is the purpose of a validation rule in Kyverno?