- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetWaitingPod (0.2 sec)
-
pkg/scheduler/framework/interface.go
SnapshotSharedLister() SharedLister // IterateOverWaitingPods acquires a read lock and iterates over the WaitingPods map. IterateOverWaitingPods(callback func(WaitingPod)) // GetWaitingPod returns a waiting pod given its UID. GetWaitingPod(uid types.UID) WaitingPod // RejectWaitingPod rejects a waiting pod given its UID. // The return value indicates if the pod is waiting or not. RejectWaitingPod(uid types.UID) bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 35.4K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption.go
preemptPod := func(index int) { victim := c.Victims().Pods[index] // If the victim is a WaitingPod, send a reject message to the PermitPlugin. // Otherwise we should delete the victim. if waitingPod := fh.GetWaitingPod(victim.UID); waitingPod != nil { waitingPod.Reject(pluginName, "preempted") logger.V(2).Info("Preemptor pod rejected a waiting pod", "preemptor", klog.KObj(pod), "waitingPod", klog.KObj(victim), "node", c.Name())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 25.1K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework.go
func (f *frameworkImpl) IterateOverWaitingPods(callback func(framework.WaitingPod)) { f.waitingPods.iterate(callback) } // GetWaitingPod returns a reference to a WaitingPod given its UID. func (f *frameworkImpl) GetWaitingPod(uid types.UID) framework.WaitingPod { if wp := f.waitingPods.get(uid); wp != nil { return wp } return nil // Returning nil instead of *waitingPod(nil). }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 60.9K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework_test.go
name: "Reject Waiting Pod", action: func(f framework.Framework) { f.GetWaitingPod(pod.UID).Reject(permitPlugin, "reject message") }, want: framework.NewStatus(framework.Unschedulable, "reject message").WithPlugin(permitPlugin), }, { name: "Allow Waiting Pod", action: func(f framework.Framework) { f.GetWaitingPod(pod.UID).Allow(permitPlugin) }, want: nil, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0)