From e90f08968f9ade483eebae1e76a9351295708bce Mon Sep 17 00:00:00 2001 From: YiscahLevySilas1 <80635572+YiscahLevySilas1@users.noreply.github.com> Date: Tue, 7 Feb 2023 22:36:32 +0200 Subject: [PATCH] don't add host scanner as excluded ns, use exception instead (#1083) Signed-off-by: YiscahLevySilas1 --- core/core/scan.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/core/scan.go b/core/core/scan.go index 660f612b..b864a1ad 100644 --- a/core/core/scan.go +++ b/core/core/scan.go @@ -76,10 +76,6 @@ func getInterfaces(ctx context.Context, scanInfo *cautils.ScanInfo) componentInt logger.L().Ctx(ctxHostScanner).Error("failed to init host scanner", helpers.Error(err)) hostSensorHandler = &hostsensorutils.HostSensorHandlerMock{} } - // excluding hostsensor namespace - if len(scanInfo.IncludeNamespaces) == 0 && hostSensorHandler.GetNamespace() != "" { - scanInfo.ExcludedNamespaces = fmt.Sprintf("%s,%s", scanInfo.ExcludedNamespaces, hostSensorHandler.GetNamespace()) - } spanHostScanner.End() // ================== setup registry adaptors ======================================