Handle OOM event.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-06-23 00:29:30 +00:00
parent f33514afdb
commit a2f6f7f128
3 changed files with 30 additions and 7 deletions

View File

@@ -50,6 +50,8 @@ const (
completeExitReason = "Completed"
// errorExitReason is the exit reason when container exits with code non-zero.
errorExitReason = "Error"
// oomExitReason is the exit reason when process in container is oom killed.
oomExitReason = "OOMKilled"
// unknownExitCode is the exit code when exit reason is unknown.
unknownExitCode = 255
)