Skip to content

Commit 65570ac

Browse files
authored
Merge branch 'main' into main
2 parents 567fa59 + 7b4bfa3 commit 65570ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/collect/cluster_resources.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,9 @@ func crsV1(ctx context.Context, client dynamic.Interface, config *rest.Config, n
797797
if len(crd.Spec.Versions) > 0 {
798798
version = crd.Spec.Versions[0].Name
799799
}
800+
if len(crd.Status.StoredVersions) > 0 {
801+
version = crd.Status.StoredVersions[0]
802+
}
800803
gvr := schema.GroupVersionResource{
801804
Group: crd.Spec.Group,
802805
Version: version,

0 commit comments

Comments
 (0)