From 1154c052683948468c824aa6c819a19b7510ae42 Mon Sep 17 00:00:00 2001 From: Pierre Cauchois Date: Tue, 14 Feb 2023 06:43:23 -0800 Subject: [PATCH] api: fix missing Node Status "disconnected" in API (#16166) --- .changelog/16166.txt | 3 +++ api/nodes.go | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changelog/16166.txt diff --git a/.changelog/16166.txt b/.changelog/16166.txt new file mode 100644 index 000000000..1347d8d74 --- /dev/null +++ b/.changelog/16166.txt @@ -0,0 +1,3 @@ +```release-note:bug +api: Added missing node states to NodeStatus constants +``` diff --git a/api/nodes.go b/api/nodes.go index ae8bf3c8f..0175c1148 100644 --- a/api/nodes.go +++ b/api/nodes.go @@ -9,9 +9,10 @@ import ( ) const ( - NodeStatusInit = "initializing" - NodeStatusReady = "ready" - NodeStatusDown = "down" + NodeStatusInit = "initializing" + NodeStatusReady = "ready" + NodeStatusDown = "down" + NodeStatusDisconnected = "disconnected" // NodeSchedulingEligible and Ineligible marks the node as eligible or not, // respectively, for receiving allocations. This is orthogonal to the node