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.
More medium Kyverno questions
- What happens when a resource violates a Kyverno validation policy with 'validationFailureAction' set to 'enforce'?
- What is the purpose of a generation rule in Kyverno?
- Which of the following is NOT a valid resource selection method in Kyverno policies?
- What is the purpose of the 'background' field in a Kyverno policy?
- What is the purpose of the 'validationFailureAction' field in a Kyverno policy?
- Which of the following is a valid JMESPath expression in a Kyverno policy?