mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Clear pod binding cache.
This commit is contained in:
parent
7ba79c3183
commit
8fc00ebda6
@ -400,6 +400,10 @@ func (sched *Scheduler) bindVolumes(assumed *v1.Pod) error {
|
|||||||
klog.Errorf("scheduler cache ForgetPod failed: %v", forgetErr)
|
klog.Errorf("scheduler cache ForgetPod failed: %v", forgetErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Volumes may be bound by PV controller asynchronously, we must clear
|
||||||
|
// stale pod binding cache.
|
||||||
|
sched.config.VolumeBinder.DeletePodBindings(assumed)
|
||||||
|
|
||||||
reason = "VolumeBindingFailed"
|
reason = "VolumeBindingFailed"
|
||||||
eventType = v1.EventTypeWarning
|
eventType = v1.EventTypeWarning
|
||||||
sched.config.Error(assumed, err)
|
sched.config.Error(assumed, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user