Adjust weight of PodTopologySpread to 2 in legacy Policy API

This commit is contained in:
Wei Huang 2020-06-02 11:27:51 -07:00
parent 2dc7b68b83
commit 7f178b2831
No known key found for this signature in database
GPG Key ID: BE5E9752F8B6E005
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},