1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00

Merge pull request #315 from nirmata/293_remove_overall_mutation

293 remove overall mutation
This commit is contained in:
shuting 2019-09-03 15:12:30 -07:00 committed by GitHub
commit 81fbdc301f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ func HasMutateOrValidatePolicies(policies []*kyverno.Policy) bool {
func HasMutateOrValidate(policy kyverno.Policy) bool {
for _, rule := range policy.Spec.Rules {
if !reflect.DeepEqual(rule.Mutation, kyverno.Mutation{}) || !reflect.DeepEqual(rule.Validation, kyverno.Validation{}) {
glog.Infoln(rule.Name)
glog.V(4).Infoln(rule.Name)
return true
}
}