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:
parent
448b77f207
commit
1cc5b7a3ab
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue