You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warnings = append(warnings, "Specifying a kernel memory limit is deprecated and will be removed in a future release.")
449
-
}
450
-
if resources.KernelMemory > 0 && !sysInfo.KernelMemory {
451
-
warnings = append(warnings, "Your kernel does not support kernel memory limit capabilities or the cgroup is not mounted. Limitation discarded.")
452
-
resources.KernelMemory = 0
453
-
}
454
-
if resources.KernelMemory > 0 && resources.KernelMemory < linuxMinMemory {
455
-
return warnings, fmt.Errorf("Minimum kernel memory limit allowed is 6MB")
456
-
}
457
-
if resources.KernelMemory > 0 && !kernel.CheckKernelVersion(4, 0, 0) {
458
-
warnings = append(warnings, "You specified a kernel memory limit on a kernel older than 4.0. Kernel memory limits are experimental on older kernels, it won't work as expected and can cause your system to be unstable.")
448
+
if !sysInfo.KernelMemory {
449
+
warnings = append(warnings, "Your kernel does not support kernel memory limit capabilities or the cgroup is not mounted. Limitation discarded.")
450
+
resources.KernelMemory = 0
451
+
}
452
+
if resources.KernelMemory > 0 && resources.KernelMemory < linuxMinMemory {
453
+
return warnings, fmt.Errorf("Minimum kernel memory limit allowed is 6MB")
454
+
}
455
+
if !kernel.CheckKernelVersion(4, 0, 0) {
456
+
warnings = append(warnings, "You specified a kernel memory limit on a kernel older than 4.0. Kernel memory limits are experimental on older kernels, it won't work as expected and can cause your system to be unstable.")
457
+
}
459
458
}
460
459
if resources.OomKillDisable != nil && !sysInfo.OomKillDisable {
461
460
// only produce warnings if the setting wasn't to *disable* the OOM Kill; no point
0 commit comments