Kyverno
Medium
Validation
What is the purpose of the 'validationFailureAction' field in a Kyverno policy?
Select your answer:
Show answer and explanation
Answer: To specify what happens when a resource fails validation
Explanation
The 'validationFailureAction' field specifies what happens when a resource fails validation against a policy. It can be set to 'enforce' (reject the resource) or 'audit' (allow the resource but report the violation).
More medium Kyverno questions
- Which of the following is a valid JMESPath expression in a Kyverno policy?
- What is the purpose of the 'exclude' field in a Kyverno policy?
- What is the purpose of the 'preconditions' field in a Kyverno rule?
- Which of the following is a valid pattern matching syntax in Kyverno?
- What is the purpose of the 'audit' value for 'validationFailureAction' in a Kyverno policy?
- What is the purpose of the 'synchronize' field in a Kyverno generate rule?