mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
kubernetes: improved the node view [r8s-47] (#108)
This commit is contained in:
parent
08d77b4333
commit
e6577ca269
2 changed files with 7 additions and 5 deletions
|
@ -36,7 +36,9 @@ function StatusCell({
|
|||
|
||||
function getStatus(node: NodeRowData) {
|
||||
return (
|
||||
node.status?.conditions?.find((condition) => condition.status === 'True')
|
||||
?.type ?? 'Not ready'
|
||||
// only look for the ready type to identify if the node is either ready or not ready
|
||||
node.status?.conditions?.find(
|
||||
(condition) => condition.status === 'True' && condition.type === 'Ready'
|
||||
)?.type ?? 'Not Ready'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue