1
0
Fork 0
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:
Steven Kang 2024-11-12 09:42:14 +13:00 committed by GitHub
parent 08d77b4333
commit e6577ca269
2 changed files with 7 additions and 5 deletions

View file

@ -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'
);
}