kyverno-policies broken / namespaces "neuvector" not found

!2721 (merged) broke main for fresh installs where neuvector is enabled:

IDENTIFIER                                  STATUS     REASON               MESSAGE
Kustomization/sylva-system/kyverno-policies InProgress                      Kustomization generation is 1, but latest observed generation is -1
╰┄╴┬┄┄[Conditions]
   ├┄╴Reconciling                           True       ProgressingWithRetry Detecting drift for revision 0.0.0-git-3a5e8aa7@sha256:5f5c3ee585cb9ef7cd086f844fdc75a50ab6f345902ac05340b0a6afe369c017 with a timeout of 30s
   ╰┄╴Ready                                 False      ReconciliationFailed PolicyException/neuvector/neuvector-exception not found: namespaces "neuvector" not found

Thr introduced a kustomize component in kyverno-policies that tries to create a Kyverno Policy in neuvector namespace, before this namespace has been created.

Assignee Loading
Time tracking Loading