Kyverno
Easy
Validation
Which validationActions value makes a Kyverno ValidatingPolicy reject a request that fails a validation?
Select your answer:
Show answer and explanation
Answer: Deny
Explanation
ValidatingPolicy accepts Deny, Audit and Warn in spec.validationActions, the same values as a Kubernetes ValidatingAdmissionPolicy binding. Deny blocks the request, Audit only records the result in policy reports and Warn returns a warning to the client. Enforce is the old validationFailureAction value from ClusterPolicy and is not valid here.
More easy Kyverno questions
- When you migrate a ClusterPolicy to the CEL-based types, which kind replaces a generate rule?
- What is Kyverno?
- Which Kubernetes resource type does Kyverno use to define policies?
- What are the three main types of rules in Kyverno policies?
- Which command is used to install Kyverno in a Kubernetes cluster?
- What is the purpose of a validation rule in Kyverno?