Skip to content

Commit

Permalink
fix PodToplogySpread plugin violates maxSkew
Browse files Browse the repository at this point in the history
  • Loading branch information
Monokaix committed Jun 20, 2023
1 parent ed5c215 commit 7445ca2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/scheduler/plugins/nodeorder/nodeorder.go
Expand Up @@ -171,18 +171,6 @@ func (pp *nodeOrderPlugin) OnSessionOpen(ssn *framework.Session) {

// Register event handlers to update task info in PodLister & nodeMap
ssn.AddEventHandler(&framework.EventHandler{
AllocateFunc: func(event *framework.Event) {
pod := pl.UpdateTask(event.Task, event.Task.NodeName)

nodeName := event.Task.NodeName
node, found := nodeMap[nodeName]
if !found {
klog.Warningf("node order, update pod %s/%s allocate to NOT EXIST node [%s]", pod.Namespace, pod.Name, nodeName)
} else {
node.AddPod(pod)
klog.V(4).Infof("node order, update pod %s/%s allocate to node [%s]", pod.Namespace, pod.Name, nodeName)
}
},
DeallocateFunc: func(event *framework.Event) {
pod := pl.UpdateTask(event.Task, "")

Expand Down

0 comments on commit 7445ca2

Please sign in to comment.