mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
use ctx withoutcancel
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
This commit is contained in:
parent
90fc108f6d
commit
6d92b330e3
@ -1961,7 +1961,8 @@ func (kl *Kubelet) SyncPod(ctx context.Context, updateType kubetypes.SyncPodType
|
||||
// errors need to be filtered from result and bypass the reasonCache - cancelling the context for
|
||||
// SyncPod is a known and deliberate error, not a generic error.
|
||||
// Call the container runtime's SyncPod callback
|
||||
result := kl.containerRuntime.SyncPod(ctx, pod, podStatus, pullSecrets, kl.backOff)
|
||||
sctx := context.WithoutCancel(ctx)
|
||||
result := kl.containerRuntime.SyncPod(sctx, pod, podStatus, pullSecrets, kl.backOff)
|
||||
if wait.Interrupted(result.Error()) {
|
||||
return false, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user