From ae2d0ff0a6ac34dc3e8493b2ad45a9badc61a26c Mon Sep 17 00:00:00 2001 From: Remington Breeze Date: Thu, 8 Apr 2021 09:04:47 -0700 Subject: [PATCH] fix(ui): Unscheduled pods in node view are now visible. Fixes #5981 (#5988) Signed-off-by: Remington Breeze --- .../components/application-pod-view/pod-view.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ui/src/app/applications/components/application-pod-view/pod-view.tsx b/ui/src/app/applications/components/application-pod-view/pod-view.tsx index 76083df804e57..af0c73ccf98e7 100644 --- a/ui/src/app/applications/components/application-pod-view/pod-view.tsx +++ b/ui/src/app/applications/components/application-pod-view/pod-view.tsx @@ -329,6 +329,19 @@ export class PodView extends React.Component { if (groupRefs[p.spec.nodeName]) { const curNode = groupRefs[p.spec.nodeName]; curNode.pods.push(p); + } else { + if (groupRefs.Unschedulable) { + groupRefs.Unschedulable.pods.push(p); + } else { + groupRefs.Unschedulable = { + type: 'node', + kind: 'node', + name: 'Unschedulable', + pods: [p], + info: [{name: 'Kernel Version', value: 'N/A'}, {name: 'OS/Arch', value: 'N/A'}], + hostResourcesInfo: [] + }; + } } } else if (sortMode === 'parentResource') { rnode.parentRefs.forEach(parentRef => {