From 2749a27791fc367e78e5fe3cc831105942066892 Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Mon, 12 Aug 2024 11:41:02 +0800 Subject: [PATCH] Update pkg/controller/pods.go Co-authored-by: Ramon de Klein --- pkg/controller/pods.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/controller/pods.go b/pkg/controller/pods.go index 3f1b125a3bd..dac53373e76 100644 --- a/pkg/controller/pods.go +++ b/pkg/controller/pods.go @@ -61,11 +61,9 @@ func (c *Controller) DeletePodsByStatefulSet(ctx context.Context, sts *appsv1.St } for _, item := range podList.Items { err = c.k8sClient.Delete(ctx, &item) - if err != nil { - // Ignore Not Found - if client.IgnoreNotFound(err) != nil { - return err - } + // Ignore Not Found + if client.IgnoreNotFound(err) != nil { + log.Printf("unable to restart %s/%s (ignored): %s", item.Namespace, item.Name, err) } } return