From 7bc6cf9d9f92d5c352514df483b4c4b130d6b0f1 Mon Sep 17 00:00:00 2001 From: Ilya Lesikov Date: Tue, 25 Jun 2024 20:12:37 +0300 Subject: [PATCH] fix: ignore false recreation errors for StatefulSets Signed-off-by: Ilya Lesikov --- pkg/tracker/event/informer.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/tracker/event/informer.go b/pkg/tracker/event/informer.go index d8849e6..d9c6981 100644 --- a/pkg/tracker/event/informer.go +++ b/pkg/tracker/event/informer.go @@ -180,6 +180,11 @@ func (e *EventInformer) handleEvent(event *corev1.Event) { } func (e *EventInformer) handleRegularEvent(event *corev1.Event, msg string) { + if strings.Contains(event.Reason, "RecreatingFailedPod") || + strings.Contains(event.Reason, "FailedDelete") { + return + } + if strings.Contains(event.Reason, "Failed") { if debug.Debug() { fmt.Printf("got FAILED EVENT!!! %s\n", msg)