From c4ee793c2cda8fc226e6135921fff8e7e6507136 Mon Sep 17 00:00:00 2001 From: NoSkillGirl Date: Wed, 21 Jul 2021 13:39:07 +0530 Subject: [PATCH] moving to error info log Signed-off-by: NoSkillGirl --- pkg/dclient/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dclient/client.go b/pkg/dclient/client.go index cbd31c42e1..7274f6b394 100644 --- a/pkg/dclient/client.go +++ b/pkg/dclient/client.go @@ -357,7 +357,7 @@ func (c ServerPreferredResources) findResource(apiVersion string, kind string) ( func logDiscoveryErrors(err error, c ServerPreferredResources) { discoveryError := err.(*discovery.ErrGroupDiscoveryFailed) for gv, e := range discoveryError.Groups { - if gv.Group == "custom.metrics.k8s.io" || gv.Group == "metrics.k8s.io" { + if gv.Group == "custom.metrics.k8s.io" || gv.Group == "metrics.k8s.io" || gv.Group == "external.metrics.k8s.io" { // These error occur when Prometheus is installed as an external metrics server // See: https://github.com/kyverno/kyverno/issues/1490 c.log.V(3).Info("failed to retrieve metrics API group", "gv", gv)