Skip to content

Commit

Permalink
fix: ignore false recreation errors for StatefulSets
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <[email protected]>
  • Loading branch information
ilya-lesikov committed Jun 25, 2024
1 parent 9e5c458 commit 7bc6cf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/tracker/event/informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7bc6cf9

Please sign in to comment.