replicatedhq / troubleshoot

Preflight Checks and Support Bundles Framework for Kubernetes Applications
https://troubleshoot.sh
Apache License 2.0
543 stars 92 forks source link

Collecting a support bundle using troubleshoot.replicated.com/v1beta1 fails #1502

Closed banjoh closed 5 months ago

banjoh commented 5 months ago

Bug Description

Parsing troubleshoot.replicated.com/v1beta1 specs in troubleshoot fails when collecting support bundles.

spec.yaml

kind: Collector
apiVersion: troubleshoot.replicated.com/v1beta1
spec:
  collectors:
  - clusterInfo: {}

Expected Behavior

troubleshoot.replicated.com/v1beta1 specs should be converted to troubleshoot.sh/v1beta2 and correctly parsed. Collecting a support bundle should succeed with the collectors defined having run.