Skip to content

Commit

Permalink
Merge pull request #346 from werf/fix/ignore-false-errors-in-stateful…
Browse files Browse the repository at this point in the history
…sets

fix: ignore false recreation errors for StatefulSets
  • Loading branch information
ilya-lesikov authored Jun 25, 2024
2 parents 9e5c458 + 7bc6cf9 commit 7c603d8
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 7c603d8

Please sign in to comment.