mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-10-28 13:45:38 +08:00
* Introduce PercentageOfPlacementsToScore limit for TAS Co-authored-by: Bartosz <brejman@google.com> * Shuffle candidate placements to guarantee fair evaluation order * Add integration tests for TAS placement limit * Reuse percentage validation for scheduler scoring limits Signed-off-by: William Yao <william2000yao@gmail.com> * Fix scheduler tests after rebase on upstream master Drop the DynamicResources defaults case, whose feature gate no longer exists upstream, and build QueuedPodGroupInfo through the existing newQueuedPodGroupInfo helper now that queuedPodInfos is unexported. * Apply placement limit to CompositePodGroups Use the shared PercentageOfPlacementsToScore limit and placement shuffling for CompositePodGroup placements as well as PodGroup placements, and skip the limit and shuffle setup when the nominated placement is feasible. Clarify the field docs, exercise the real Filter path in the placement limit test, and cover shuffle skipping, plugin slice immutability and CompositePodGroups in unit and integration tests. * Reword DefaultPercentageOfPlacementsToScore godoc --------- Signed-off-by: William Yao <william2000yao@gmail.com> Co-authored-by: Bartosz <brejman@google.com>