1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: follow up for #9534 (#9543)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2024-01-29 09:54:58 +01:00 committed by GitHub
parent 4108415153
commit 747bc017e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -198,9 +198,6 @@ func (v *validator) validateForEach(ctx context.Context) *engineapi.RuleResponse
applyCount += count
}
if applyCount == 0 {
if v.forEach == nil {
return nil
}
return nil
}
return engineapi.RulePass(v.rule.Name, engineapi.Validation, "rule passed")