Default cluster-resources and cluster-info collectors added in host only support bundle
banjoh opened this issue · 0 comments
banjoh commented
Bug Description
Collecting a host only collectors support bundle includes cluster-resources
and cluster-info
collectors.
Expected Behavior
Only host collectors should be in the spec
Steps To Reproduce
Use --dry-run
to print the spec that would be used to collect the support bundle. Note the extra in-cluster specs
support-bundle https://raw.githubusercontent.com/replicatedhq/troubleshoot/main/examples/collect/host/cpu.yaml --dry-run
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
creationTimestamp: null
name: merged-support-bundle-spec
spec:
collectors:
- clusterInfo: {}
- clusterResources: {}
hostCollectors:
- cpu: {}
- cpu: {}
- cpu: {}
- cpu: {}
status: {}
Additional Context
There is also an additional bug where collectors are getting duplicated. Note the number of - cpu: {}
entries in the merged collector
Include the following information.
- Troubleshoot version. If you built from source, note that including the version of Go you used to build with.
- Operating system
- Operating system version
- Other details that might be helpful in diagnosing the problem