diff --git a/pkg/config/config.go b/pkg/config/config.go index 130e7c7f6d..0fc8a9fe48 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -36,9 +36,6 @@ var ( ValidatingWebhookServicePath = "/validate" PolicyValidatingWebhookServicePath = "/policyvalidate" PolicyMutatingWebhookServicePath = "/policymutate" - // KubePolicyAppLabels = map[string]string{ - // "app": "kyverno", - // } SupportedKinds = []string{ "ConfigMap", diff --git a/pkg/policy/controller.go b/pkg/policy/controller.go index 3938ea50d0..a29a91e4cd 100644 --- a/pkg/policy/controller.go +++ b/pkg/policy/controller.go @@ -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 } -