From 92c62b38869e87b90da849cb4f815b65ccd8931d Mon Sep 17 00:00:00 2001 From: Airren Date: Thu, 27 Jun 2024 15:56:58 +0800 Subject: [PATCH] feat: remove get pod no-cache Signed-off-by: Airren --- pkg/agent/orm/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/orm/manager.go b/pkg/agent/orm/manager.go index 5480ae8d84..615c4f897c 100644 --- a/pkg/agent/orm/manager.go +++ b/pkg/agent/orm/manager.go @@ -453,8 +453,8 @@ func (m *ManagerImpl) processAddPod(podUID string) error { err error ) if m.mode == workModeNri { - m.ctx = context.WithValue(m.ctx, metaserverpod.BypassCacheKey, metaserverpod.BypassCacheTrue) - pod, err = m.metaManager.GetPod(m.ctx, podUID) + nriQueryCtx := context.WithValue(m.ctx, metaserverpod.BypassCacheKey, metaserverpod.BypassCacheTrue) + pod, err = m.metaManager.GetPod(nriQueryCtx, podUID) } else { pod, err = m.metaManager.GetPod(m.ctx, podUID) }