k8wiz
Kyverno
Easy
Generation

A GeneratingPolicy defines a NetworkPolicy inline and has evaluation.synchronize.enabled set to true. What happens when someone deletes the generated NetworkPolicy?

Select your answer:

Show answer and explanation

Answer: Kyverno recreates it from the policy

Explanation

With synchronization on, the downstream resource is tied to the policy and its trigger, so Kyverno recreates a deleted downstream object and reverts manual edits to it. Without synchronization, a deleted downstream object simply stays deleted.

Read more about Kyverno