Internal types are not supposed to have json metadata (though in kubernetes they do) as it is true with openshift types. That means sort-by must work on versioned objects for sorting, otherwise it produces "error: metadata is not found" error if it sorts internal types without json metadata. This PR converts internal types objects to versioned objects and sort-by sorts them correctly without medata error, and then it prints corresponding internal objects in sorted order.
25 KiB
25 KiB