Skip to content

Commit 7425f58

Browse files
authored
Don't include any default host collectors (#524)
1 parent c3af3b6 commit 7425f58

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/preflight/collect.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ func (cr RemoteCollectResult) IsRBACAllowed() bool {
7777
func CollectHost(opts CollectOpts, p *troubleshootv1beta2.HostPreflight) (CollectResult, error) {
7878
collectSpecs := make([]*troubleshootv1beta2.HostCollect, 0, 0)
7979
collectSpecs = append(collectSpecs, p.Spec.Collectors...)
80-
collectSpecs = ensureHostCollectorInList(collectSpecs, troubleshootv1beta2.HostCollect{CPU: &troubleshootv1beta2.CPU{}})
81-
collectSpecs = ensureHostCollectorInList(collectSpecs, troubleshootv1beta2.HostCollect{Memory: &troubleshootv1beta2.Memory{}})
8280

8381
allCollectedData := make(map[string][]byte)
8482

0 commit comments

Comments
 (0)