Kyverno
Medium
Validation
What happens when a resource violates a Kyverno validation policy with 'validationFailureAction' set to 'enforce'?
Select your answer:
Show answer and explanation
Answer: The resource is rejected and not admitted to the cluster
Explanation
When 'validationFailureAction' is set to 'enforce', resources that violate the policy are rejected and not admitted to the cluster. This is the strictest enforcement level.
More medium Kyverno questions
- 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?
- What is the purpose of the 'exclude' field in a Kyverno policy?