mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 18:11:22 +00:00
scheduler/volumebinding: move all volume binding logic into VolumeBinding plugin
This commit is contained in:
@@ -206,10 +206,6 @@ func (sched *Scheduler) deletePodFromSchedulingQueue(obj interface{}) {
|
||||
if err := sched.SchedulingQueue.Delete(pod); err != nil {
|
||||
utilruntime.HandleError(fmt.Errorf("unable to dequeue %T: %v", obj, err))
|
||||
}
|
||||
if sched.VolumeBinder != nil {
|
||||
// Volume binder only wants to keep unassigned pods
|
||||
sched.VolumeBinder.DeletePodBindings(pod)
|
||||
}
|
||||
prof, err := sched.profileForPod(pod)
|
||||
if err != nil {
|
||||
// This shouldn't happen, because we only accept for scheduling the pods
|
||||
|
Reference in New Issue
Block a user