Skip to content

Commit

Permalink
Change unschedulable disk to yellow when node is cordoned
Browse files Browse the repository at this point in the history
Longhorn 2238

Signed-off-by: Eric Weber <eric.weber@suse.com>
  • Loading branch information
ejweber authored and David Ko committed Dec 26, 2023
1 parent 9920a3c commit 31f7400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/host/DiskList.js
Expand Up @@ -14,7 +14,7 @@ function diskList({ disks, node, storageOverProvisioningPercentage, minimalSched
return (<span className="disabled">Disabled</span>)
}
if (node.conditions && node.conditions.Schedulable && node.conditions.Schedulable.status && node.conditions.Schedulable.status.toLowerCase() === 'false') {
return (<span className="disabled">Unschedulable</span>)
return (<span className="unschedulable">Unschedulable</span>)
}
const status = d.conditions && d.conditions.Schedulable && d.conditions.Schedulable.status && d.conditions.Schedulable.status.toLowerCase() === 'true'
if (status) {
Expand Down

0 comments on commit 31f7400

Please sign in to comment.