mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Don't include any default host collectors (#524)
This commit is contained in:
committed by
GitHub
parent
c3af3b63d9
commit
7425f583fc
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user