Fix Pod Container sorting not correlating to visuals (#5175)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-08-02 12:44:32 -04:00
1 parent 95ed0dda1b
commit 2b24a42883
4 files changed
+8 -8

No files matched your search

@@ -113,7 +113,7 @@ class NonInjectedPods extends React.Component<Dependencies> {
sortingCallbacks={{
[columnId.name]: pod => getConvertedParts(pod.getName()),
[columnId.namespace]: pod => pod.getNs(),
[columnId.containers]: pod => pod.getContainers().length,
[columnId.containers]: pod => pod.getContainerStatuses().length,
[columnId.restarts]: pod => pod.getRestartsCount(),
[columnId.owners]: pod => pod.getOwnerRefs().map(ref => ref.kind),
[columnId.qos]: pod => pod.getQosClass(),