Merge pull request #91696 from Huang-Wei/pts-weight-2-policy-path

Adjust weight of PodTopologySpread to 2 in legacy Policy API
This commit is contained in:
Kubernetes Prow Robot 2020-06-04 13:52:36 -07:00 committed by GitHub
commit 1f4015806a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ func NewLegacyRegistry() *LegacyRegistry {
NodeAffinityPriority: 1,
TaintTolerationPriority: 1,
ImageLocalityPriority: 1,
EvenPodsSpreadPriority: 1,
EvenPodsSpreadPriority: 2,
},
PredicateToConfigProducer: make(map[string]ConfigProducer),

View File

@ -134,7 +134,7 @@ func TestSchedulerCreationFromConfigMap(t *testing.T) {
},
"ScorePlugin": {
{Name: "NodeResourcesBalancedAllocation", Weight: 1},
{Name: "PodTopologySpread", Weight: 1},
{Name: "PodTopologySpread", Weight: 2},
{Name: "ImageLocality", Weight: 1},
{Name: "InterPodAffinity", Weight: 1},
{Name: "NodeResourcesLeastAllocated", Weight: 1},
@ -228,7 +228,7 @@ kind: Policy
},
"ScorePlugin": {
{Name: "NodeResourcesBalancedAllocation", Weight: 1},
{Name: "PodTopologySpread", Weight: 1},
{Name: "PodTopologySpread", Weight: 2},
{Name: "ImageLocality", Weight: 1},
{Name: "InterPodAffinity", Weight: 1},
{Name: "NodeResourcesLeastAllocated", Weight: 1},