Skip to content

Commit

Permalink
feat: handle OOMKilled
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Sep 7, 2022
1 parent 221bc62 commit 0a5a33c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/status/container_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func TestContainerStatus(status *v1.ContainerStatus) RolloutStatus {
// TODO this should retry but have a deadline, all restarts fall to CrashLoopBackOff
err := MakeRolloutError(FailureProcessCrashing, "Container %q is in %q", status.Name, reason)
return RolloutFatal(err)
case "OOMKilled":
err := MakeRolloutError(FailureResourceLimitsExceeded, "Container %q is in %q", status.Name, reason)
return RolloutFatal(err)
}
}

Expand Down

0 comments on commit 0a5a33c

Please sign in to comment.