From c75c319ea2b818cad25061ba6b77b55db28ab869 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 20 Nov 2017 12:50:55 -0500 Subject: Add support for oom functions Add tests for oom-kill-disable and oom-kill-adj Signed-off-by: Daniel J Walsh Closes: #52 Approved by: TomSweeneyRedHat --- cmd/kpod/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/kpod/spec.go b/cmd/kpod/spec.go index 69e81d0e5..1ae050d25 100644 --- a/cmd/kpod/spec.go +++ b/cmd/kpod/spec.go @@ -96,6 +96,7 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) { g.SetLinuxResourcesMemorySwappiness(config.resources.memorySwapiness) } g.SetLinuxResourcesMemoryDisableOOMKiller(config.resources.disableOomKiller) + g.SetProcessOOMScoreAdj(config.resources.oomScoreAdj) // RESOURCES - CPU @@ -176,7 +177,6 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) { } /* - OOMScoreAdj: &config.resources.oomScoreAdj, Hooks: &configSpec.Hooks{}, //Annotations Resources: &configSpec.LinuxResources{ -- cgit v1.2.3-54-g00ecf