1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-24 08:36:46 +00:00

Skip reporting for vpol when vap generation is enabled (#12311)

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
Frank Jogeleit 2025-03-06 15:35:34 +01:00 committed by GitHub
parent 448b77f207
commit 1cc5b7a3ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -453,6 +453,10 @@ func (c *controller) reconcileReport(
}
// calculate necessary results
for _, policy := range policies {
if vpol := policy.AsValidatingPolicy(); vpol != nil && vpol.Status.Generated {
continue
}
reevaluate := false
if policy.AsKyvernoPolicy() != nil {
for _, polex := range exceptions {