Skip to content

Commit

Permalink
fix(ui): Unscheduled pods in node view are now visible. Fixes argopro…
Browse files Browse the repository at this point in the history
…j#5981 (argoproj#5988)

Signed-off-by: Remington Breeze <[email protected]>
  • Loading branch information
rbreeze authored Apr 8, 2021
1 parent b003f70 commit ae2d0ff
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,19 @@ export class PodView extends React.Component<PodViewProps> {
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 => {
Expand Down

0 comments on commit ae2d0ff

Please sign in to comment.