Files
Willie YaoandBartosz ccca46cf5f Introduce PercentageOfPlacementsToScore limit for TAS (#139859)
* 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>
2026-10-07 15:17:01 +00:00
..