k8wiz
Kyverno
Medium
Testing

In a kyverno-test.yaml results entry, which field marks the result as coming from a CEL-based ValidatingPolicy?

Select your answer:

Show answer and explanation

Answer: isValidatingPolicy: true

Explanation

Results default to classic Kyverno policies, which also need a rule name. For the newer policy types you set a flag such as isValidatingPolicy, isMutatingPolicy or isImageValidatingPolicy. The kind field in a result is the kind of the tested resource, such as Deployment, not the policy type.

Read more about Kyverno