Skip to content

Commit 191db73

Browse files
committed
feat: add warning status for unschedulable nodes in nodeStatus function
1 parent 8c58d8c commit 191db73

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/status.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ function nodeStatus(node: NodeObject): Condition {
167167
};
168168
}
169169

170+
// Warning: if node is unschedulable
171+
if (node.spec.unschedulable) {
172+
return {
173+
status: Status.Warning,
174+
reason: `Node is unschedulable`,
175+
};
176+
}
177+
170178
return {
171179
status: Status.Running,
172180
reason: `Node is ready and all conditions are healthy`,

0 commit comments

Comments
 (0)