-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Description
After the refactoring introduced in PR #6597 (which optimized karmada-scheduler performance by using spreadconstraint.ClusterDetailInfo), the log message for "Selected clusters" has become unreadable. This is because the log now directly dumps the slice of ClusterDetailInfo structs, which includes all internal fields (e.g., Name, Score, AvailableReplicas, Cluster, AllocatableReplicas) in a raw, unformatted way.
Current Behavior
The log line prints the full []spreadconstraint.ClusterDetailInfo slice. For example:
Selected clusters: [{member1 100 9 member1 9}]
This output does not clearly map fields to their meanings, making it difficult for developers/operators to quickly parse which clusters were selected and their key attributes (e.g., only cluster name and critical replica values are usually relevant for debugging).
Expected Behavior
The "Selected clusters" log should be human-readable, displaying only key, labeled information.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status