mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
scheduler(NodeResourcesFit & NodeResourcesBalancedAllocation): calculatePodResourceRequest in PreScore phase (#115655)
* scheduler(NodeResourcesFit): calculatePodResourceRequest in PreScore phase * scheduler(NodeResourcesFit and NodeResourcesBalancedAllocation): calculatePodResourceRequest in PreScore phase * modify the comments and tests. * revert the tests. * don't need consider nodes. * use list instead of map. * add comment for podRequests. * avoid using negative wording in variable names.
This commit is contained in:
@@ -402,6 +402,7 @@ leaderElection:
|
||||
{Name: "NodePorts"},
|
||||
}
|
||||
plugins.PreScore.Enabled = []config.Plugin{
|
||||
{Name: "NodeResourcesFit"},
|
||||
{Name: "InterPodAffinity"},
|
||||
{Name: "TaintToleration"},
|
||||
}
|
||||
@@ -431,6 +432,7 @@ leaderElection:
|
||||
{Name: "NodePorts"},
|
||||
}
|
||||
plugins.PreScore.Enabled = []config.Plugin{
|
||||
{Name: "NodeResourcesFit"},
|
||||
{Name: "InterPodAffinity"},
|
||||
{Name: "TaintToleration"},
|
||||
}
|
||||
|
Reference in New Issue
Block a user