Kyverno
Hard
Mutation
What is the purpose of the 'kyverno.io/last-applied-policy' annotation?
Select your answer:
Show answer and explanation
Answer: To store the last state of a resource before a policy was applied
Explanation
The 'kyverno.io/last-applied-policy' annotation is used to store the last state of a resource before a policy was applied. This is used for tracking changes made by policies and for potential rollback.
More hard Kyverno questions
- Which of the following is a valid way to define a variable in a Kyverno policy?
- What is the purpose of the 'kyverno.io/policy-update-mode' annotation?
- All Kyverno admission controller pods are down, and a policy's webhook failurePolicy is Fail. What happens to API requests that its webhook matches?
- How does Kyverno change resources that already exist in the cluster, rather than only new admission requests?
- A new generate rule creates a NetworkPolicy in every Namespace. What makes Kyverno also create it in Namespaces that existed before the policy?
- Which label makes Kyverno delete a resource automatically after a set amount of time?