Kyverno
Medium
Policies
A Kyverno DeletingPolicy with schedule '0 * * * *' has never run yet. When does the cleanup controller first evaluate it?
Select your answer:
Show answer and explanation
Answer: At the next cron tick after its creation time
Explanation
The controller computes the next run from status.lastExecutionTime, or from the policy's creation timestamp when it has never run. After each run it writes lastExecutionTime and requeues the policy for the following tick. A policy created at 10:05 with an hourly schedule therefore first runs at 11:00.
More medium Kyverno questions
- What happens when a resource violates a Kyverno validation policy with 'validationFailureAction' set to 'enforce'?
- 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?