-
Couldn't load subscription status.
- Fork 64
Open
Description
To implement this feature:
- Update NodeInfo struct with
IsReady v1.ConditionStatusReference: https://kubernetes.io/docs/concepts/architecture/nodes/#condition - Filter cluster nodes by following condition:
for _, value := range cluster.Nodes { // Do not use any Unschedulable nodes in calculations if !value.Unschedulable { if value.IsReady == "true" { klog.V(6).Infof("[updateState] %s is marked as unschedulable or not ready node Total: %v, Used: %v, and Idle: %v will not be included in cluster state calculation.", value.Name, value.Allocatable, value.Used, value.Idle) continue } } Metadata
Metadata
Assignees
Labels
No labels