api: fix missing Node Status "disconnected" in API (#16166)

This commit is contained in:
Pierre Cauchois
2023-02-14 06:43:23 -08:00
committed by GitHub
parent ad35b0da7f
commit 1154c05268
2 changed files with 7 additions and 3 deletions

3
.changelog/16166.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
api: Added missing node states to NodeStatus constants
```

View File

@@ -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