Don't include any default host collectors (#524)

This commit is contained in:
Salah Aldeen Al Saleh
2022-01-10 16:19:56 -08:00
committed by GitHub
parent c3af3b63d9
commit 7425f583fc

View File

@@ -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)