Kyverno
Hard
Generation
A GeneratingPolicy with synchronize enabled defines its resources inline. What does setting evaluation.orphanDownstreamOnPolicyDelete.enabled to true change?
Select your answer:
Show answer and explanation
Answer: Generated resources stay in the cluster when the policy is deleted
Explanation
With synchronization on, deleting a data-source GeneratingPolicy also deletes everything it generated, because orphanDownstreamOnPolicyDelete defaults to false. Setting it to true keeps (orphans) those resources after the policy is gone. It has no effect on reverting edits, which synchronization still handles, or on existing namespaces, which is generateExisting's job.
More hard Kyverno questions
- What is the purpose of the 'context' field in a Kyverno policy?
- What is the purpose of the 'foreach' field in a Kyverno rule?
- Which of the following is NOT a component of the Kyverno architecture?
- What is the purpose of the 'kyverno.io/updateToken' annotation in a generated resource?
- Which of the following is NOT a valid source for context variables in Kyverno?
- What is the purpose of the 'kyverno.io/last-applied-policy' annotation?