From 1897c5a4baa32ca86ac2a613c641bf122d840aca Mon Sep 17 00:00:00 2001 From: kooomix Date: Thu, 15 Dec 2022 16:17:39 +0200 Subject: [PATCH] Revert "Excluding controlPlaneInfo from error message in case no data recieved." --- core/pkg/hostsensorutils/hostsensorworkerpool.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/pkg/hostsensorutils/hostsensorworkerpool.go b/core/pkg/hostsensorutils/hostsensorworkerpool.go index 7278d65f..ded788e5 100644 --- a/core/pkg/hostsensorutils/hostsensorworkerpool.go +++ b/core/pkg/hostsensorutils/hostsensorworkerpool.go @@ -47,10 +47,7 @@ func (wp *workerPool) hostSensorWorker(hsh *HostSensorHandler, wg *sync.WaitGrou for job := range wp.jobs { hostSensorDataEnvelope, err := hsh.getResourcesFromPod(job.podName, job.nodeName, job.requestKind, job.path) if err != nil { - // TODO: Add to the condition also cloud provider (as in main cloud providers there is no access to control plane) - if job.path != "/controlPlaneInfo" { - logger.L().Error("failed to get data", helpers.String("path", job.path), helpers.String("podName", job.podName), helpers.Error(err)) - } + logger.L().Error("failed to get data", helpers.String("path", job.path), helpers.String("podName", job.podName), helpers.Error(err)) } else { wp.results <- hostSensorDataEnvelope }