1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +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) return fmt.Errorf("path: spec.rules[%d]: %v", i, err)
} }
//if doesMatchAndExcludeConflict(rule) { if doesMatchAndExcludeConflict(rule) {
// return fmt.Errorf("path: spec.rules[%v]: rule is matching an empty set", rule.Name) return fmt.Errorf("path: spec.rules[%v]: rule is matching an empty set", rule.Name)
//} }
// validate rule actions // validate rule actions
// - Mutate // - Mutate