k8wiz
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.

Read more about Kyverno