k8wiz
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).

Read more about Kyverno