mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
remove commented code + fix log param
This commit is contained in:
parent
b1e5f0a8c7
commit
7a43bed8e4
2 changed files with 1 additions and 5 deletions
|
@ -36,9 +36,6 @@ var (
|
||||||
ValidatingWebhookServicePath = "/validate"
|
ValidatingWebhookServicePath = "/validate"
|
||||||
PolicyValidatingWebhookServicePath = "/policyvalidate"
|
PolicyValidatingWebhookServicePath = "/policyvalidate"
|
||||||
PolicyMutatingWebhookServicePath = "/policymutate"
|
PolicyMutatingWebhookServicePath = "/policymutate"
|
||||||
// KubePolicyAppLabels = map[string]string{
|
|
||||||
// "app": "kyverno",
|
|
||||||
// }
|
|
||||||
|
|
||||||
SupportedKinds = []string{
|
SupportedKinds = []string{
|
||||||
"ConfigMap",
|
"ConfigMap",
|
||||||
|
|
|
@ -410,7 +410,7 @@ func (pc *PolicyController) syncPolicy(key string) error {
|
||||||
// remove webhook configurations if there are not policies
|
// remove webhook configurations if there are not policies
|
||||||
if err := pc.removeResourceWebhookConfiguration(); err != nil {
|
if err := pc.removeResourceWebhookConfiguration(); err != nil {
|
||||||
// do not fail, if unable to delete resource webhook config
|
// 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)
|
glog.Errorln(err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -911,4 +911,3 @@ func convertRules(rules []RuleStatinfo) []kyverno.RuleStats {
|
||||||
}
|
}
|
||||||
return stats
|
return stats
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue