diff --git a/pkg/controller/pod.go b/pkg/controller/pod.go index 9a97b583c3f..98ac84a9a55 100644 --- a/pkg/controller/pod.go +++ b/pkg/controller/pod.go @@ -581,7 +581,7 @@ func (c *Controller) handleAddPod(key string) error { if k8serrors.IsNotFound(err) { // Sometimes pod is deleted between kube-ovn configure ovn-nb and patch pod. // Then we need to recycle the resource again. - c.deletePodQueue.AddRateLimited(key) + c.deletePodQueue.AddRateLimited(pod) return nil } klog.Errorf("patch pod %s/%s failed: %v", name, namespace, err) @@ -907,7 +907,7 @@ func (c *Controller) handleUpdatePod(key string) error { if k8serrors.IsNotFound(err) { // Sometimes pod is deleted between kube-ovn configure ovn-nb and patch pod. // Then we need to recycle the resource again. - c.deletePodQueue.AddRateLimited(key) + c.deletePodQueue.AddRateLimited(pod) return nil } klog.Errorf("patch pod %s/%s failed %v", name, namespace, err)