diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cacf80b5..af5247b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ Thank you for your interest in Troubleshoot, we welcome your participation. Plea To get started we recommend: 1. Go (v1.17 or later) -2. Kubernetes (we recommend https://k3d.io/. requires Docker v20.10.5 or later) +2. A Kubernetes cluster (we recommend https://k3d.io/. This requires Docker v20.10.5 or later) 3. Fork and clone the repo to $GOPATH/src/github.com/replicatedhq/ 4. Run `make support-bundle preflight` to generate binaries 5. Run `make run-troubleshoot` to generate a support bundle with the `sample-troubleshoot.yaml` in the root of the repo diff --git a/pkg/collect/cluster_resources.go b/pkg/collect/cluster_resources.go index 99f581f5..53ac6922 100644 --- a/pkg/collect/cluster_resources.go +++ b/pkg/collect/cluster_resources.go @@ -797,6 +797,9 @@ func crsV1(ctx context.Context, client dynamic.Interface, config *rest.Config, n if len(crd.Spec.Versions) > 0 { version = crd.Spec.Versions[0].Name } + if len(crd.Status.StoredVersions) > 0 { + version = crd.Status.StoredVersions[0] + } gvr := schema.GroupVersionResource{ Group: crd.Spec.Group, Version: version,