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:
commit
81fbdc301f
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func HasMutateOrValidatePolicies(policies []*kyverno.Policy) bool {
|
||||||
func HasMutateOrValidate(policy kyverno.Policy) bool {
|
func HasMutateOrValidate(policy kyverno.Policy) bool {
|
||||||
for _, rule := range policy.Spec.Rules {
|
for _, rule := range policy.Spec.Rules {
|
||||||
if !reflect.DeepEqual(rule.Mutation, kyverno.Mutation{}) || !reflect.DeepEqual(rule.Validation, kyverno.Validation{}) {
|
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
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue