From f9295aa49fad9c552caa7ae7b535b4ababdb7e10 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Wed, 7 Dec 2022 12:52:04 -0800 Subject: [PATCH] Fix context when waiting sandbox Signed-off-by: Maksym Pavlenko --- pkg/cri/sbserver/sandbox_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cri/sbserver/sandbox_run.go b/pkg/cri/sbserver/sandbox_run.go index ba830559a..d8c9273d3 100644 --- a/pkg/cri/sbserver/sandbox_run.go +++ b/pkg/cri/sbserver/sandbox_run.go @@ -295,7 +295,7 @@ func (c *criService) RunPodSandbox(ctx context.Context, r *runtime.RunPodSandbox // TaskOOM from containerd may come before sandbox is added to store, // but we don't care about sandbox TaskOOM right now, so it is fine. go func() { - resp, err := controller.Wait(context.Background(), id) + resp, err := controller.Wait(ctrdutil.NamespacedContext(), id) if err != nil { log.G(ctx).WithError(err).Error("failed to wait for sandbox controller, skipping exit event") return