Add oom score adj in new CRI implementation.

This commit is contained in:
Random-Liu
2016-09-24 19:07:43 -07:00
parent 5b3860ce0b
commit 2141e230a6
7 changed files with 33 additions and 6 deletions

View File

@@ -21,6 +21,10 @@ import (
)
const (
// PodInfraOOMAdj is very docker specific. For arbitrary runtime, it may not make
// sense to set sandbox level oom score, e.g. a sandbox could only be a namespace
// without a process.
// TODO: Handle infra container oom score adj in a runtime agnostic way.
PodInfraOOMAdj int = -998
KubeletOOMScoreAdj int = -999
DockerOOMScoreAdj int = -999