mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
744 fixing policy validation
This commit is contained in:
parent
0a34357921
commit
f8f27cea18
1 changed files with 3 additions and 3 deletions
|
@ -55,9 +55,9 @@ func Validate(policyRaw []byte, client *dclient.Client, mock bool, openAPIContro
|
|||
return fmt.Errorf("path: spec.rules[%d]: %v", i, err)
|
||||
}
|
||||
|
||||
//if doesMatchAndExcludeConflict(rule) {
|
||||
// return fmt.Errorf("path: spec.rules[%v]: rule is matching an empty set", rule.Name)
|
||||
//}
|
||||
if doesMatchAndExcludeConflict(rule) {
|
||||
return fmt.Errorf("path: spec.rules[%v]: rule is matching an empty set", rule.Name)
|
||||
}
|
||||
|
||||
// validate rule actions
|
||||
// - Mutate
|
||||
|
|
Loading…
Reference in a new issue