1
0
Fork 0
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:
shravan 2020-04-27 22:01:33 +05:30
parent 0a34357921
commit f8f27cea18

View file

@ -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