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
2 changed files with 3 additions and 3 deletions

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},