Update runtime spec to 96de01bbb42c7af89bff100e10a
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
6
vendor/github.com/containerd/cgroups/memory.go
generated
vendored
6
vendor/github.com/containerd/cgroups/memory.go
generated
vendored
@@ -274,7 +274,7 @@ func getMemorySettings(resources *specs.LinuxResources) []memorySettings {
|
||||
},
|
||||
{
|
||||
name: "oom_control",
|
||||
value: getOomControlValue(resources),
|
||||
value: getOomControlValue(mem),
|
||||
},
|
||||
{
|
||||
name: "swappiness",
|
||||
@@ -295,8 +295,8 @@ func checkEBUSY(err error) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func getOomControlValue(resources *specs.LinuxResources) *int64 {
|
||||
if resources.DisableOOMKiller != nil && *resources.DisableOOMKiller {
|
||||
func getOomControlValue(mem *specs.LinuxMemory) *int64 {
|
||||
if mem.DisableOOMKiller != nil && *mem.DisableOOMKiller {
|
||||
i := int64(1)
|
||||
return &i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user