From 7425f583fc61ede039bb435942f7e81efdfba1ab Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Mon, 10 Jan 2022 16:19:56 -0800 Subject: [PATCH] Don't include any default host collectors (#524) --- pkg/preflight/collect.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/preflight/collect.go b/pkg/preflight/collect.go index 3bda873e..a751d2d8 100644 --- a/pkg/preflight/collect.go +++ b/pkg/preflight/collect.go @@ -77,8 +77,6 @@ func (cr RemoteCollectResult) IsRBACAllowed() bool { func CollectHost(opts CollectOpts, p *troubleshootv1beta2.HostPreflight) (CollectResult, error) { collectSpecs := make([]*troubleshootv1beta2.HostCollect, 0, 0) collectSpecs = append(collectSpecs, p.Spec.Collectors...) - collectSpecs = ensureHostCollectorInList(collectSpecs, troubleshootv1beta2.HostCollect{CPU: &troubleshootv1beta2.CPU{}}) - collectSpecs = ensureHostCollectorInList(collectSpecs, troubleshootv1beta2.HostCollect{Memory: &troubleshootv1beta2.Memory{}}) allCollectedData := make(map[string][]byte)