Merge pull request #78777 from tedyu/preempt-bench

Use no-priority best-effort pod as the preemptor in BenchmarkGetPodsToPreempt
This commit is contained in:
Kubernetes Prow Robot 2019-06-14 16:51:00 -07:00 committed by GitHub
commit ec02afb46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ func BenchmarkGetPodsToPreempt(t *testing.B) {
inputPods = append(inputPods, allPods[tinyBurstable])
}
for n := 0; n < t.N; n++ {
getPodsToPreempt(nil, inputPods, admissionRequirementList([]*admissionRequirement{
getPodsToPreempt(allPods[bestEffort], inputPods, admissionRequirementList([]*admissionRequirement{
{
resourceName: v1.ResourceCPU,
quantity: parseCPUToInt64("110m"),