mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #107030 from claudiubelu/tests/serial-gc-test
tests: Lowers the number of pods returned by estimateMaximumPods
This commit is contained in:
commit
69df976769
@ -68,7 +68,7 @@ func estimateMaximumPods(c clientset.Interface, min, max int32) int32 {
|
|||||||
availablePods += 10
|
availablePods += 10
|
||||||
}
|
}
|
||||||
//avoid creating exactly max pods
|
//avoid creating exactly max pods
|
||||||
availablePods = int32(float32(availablePods) * 0.8)
|
availablePods = int32(float32(availablePods) * 0.5)
|
||||||
// bound the top and bottom
|
// bound the top and bottom
|
||||||
if availablePods > max {
|
if availablePods > max {
|
||||||
availablePods = max
|
availablePods = max
|
||||||
|
Loading…
Reference in New Issue
Block a user