1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 07:26:55 +00:00

remove commented code + fix log param

This commit is contained in:
shivkumar dudhani 2019-09-04 14:06:06 -07:00
parent b1e5f0a8c7
commit 7a43bed8e4
2 changed files with 1 additions and 5 deletions

View file

@ -36,9 +36,6 @@ var (
ValidatingWebhookServicePath = "/validate"
PolicyValidatingWebhookServicePath = "/policyvalidate"
PolicyMutatingWebhookServicePath = "/policymutate"
// KubePolicyAppLabels = map[string]string{
// "app": "kyverno",
// }
SupportedKinds = []string{
"ConfigMap",

View file

@ -410,7 +410,7 @@ func (pc *PolicyController) syncPolicy(key string) error {
// remove webhook configurations if there are not policies
if err := pc.removeResourceWebhookConfiguration(); err != nil {
// do not fail, if unable to delete resource webhook config
glog.V(4).Info("failed to remove resource webhook configuration: %v", err)
glog.V(4).Infof("failed to remove resource webhook configuration: %v", err)
glog.Errorln(err)
}
return nil
@ -911,4 +911,3 @@ func convertRules(rules []RuleStatinfo) []kyverno.RuleStats {
}
return stats
}