From 574b09b7de4f36350c2c67ede7f907bd619c65aa Mon Sep 17 00:00:00 2001 From: xigang Date: Sun, 28 Sep 2025 10:56:56 +0800 Subject: [PATCH] nodelifecycle: fix ComputeZoneState method comment Signed-off-by: xigang --- pkg/controller/nodelifecycle/node_lifecycle_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controller/nodelifecycle/node_lifecycle_controller.go b/pkg/controller/nodelifecycle/node_lifecycle_controller.go index bc0a78a5309..818984e73dd 100644 --- a/pkg/controller/nodelifecycle/node_lifecycle_controller.go +++ b/pkg/controller/nodelifecycle/node_lifecycle_controller.go @@ -1259,7 +1259,8 @@ func (nc *Controller) markNodeAsReachable(ctx context.Context, node *v1.Node) (b return nc.zoneNoExecuteTainter[nodetopology.GetZoneKey(node)].Remove(node.Name), nil } -// ComputeZoneState returns a slice of NodeReadyConditions for all Nodes in a given zone. +// ComputeZoneState computes the state of a zone based on node ready conditions. +// It returns the number of not-ready nodes and the zone state. // The zone is considered: // - fullyDisrupted if there're no Ready Nodes, // - partiallyDisrupted if at least than nc.unhealthyZoneThreshold percent of Nodes are not Ready,