Merge pull request #91 from Random-Liu/support-oom-event

Handle OOM event.
This commit is contained in:
Lantao Liu
2017-06-26 00:18:27 -07:00
committed by GitHub
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
)