mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Fix pod worker deadlock.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
f634f7dae4
commit
0f4c739b2c
@ -306,7 +306,7 @@ func killPodNow(podWorkers PodWorkers, recorder record.EventRecorder) eviction.K
|
|||||||
type response struct {
|
type response struct {
|
||||||
err error
|
err error
|
||||||
}
|
}
|
||||||
ch := make(chan response)
|
ch := make(chan response, 1)
|
||||||
podWorkers.UpdatePod(&UpdatePodOptions{
|
podWorkers.UpdatePod(&UpdatePodOptions{
|
||||||
Pod: pod,
|
Pod: pod,
|
||||||
UpdateType: kubetypes.SyncPodKill,
|
UpdateType: kubetypes.SyncPodKill,
|
||||||
|
Loading…
Reference in New Issue
Block a user