Skip to content

Commit 7a0c8b6

Browse files
committed
cri: stop recommending disable_cgroup
Disabling cgroup is no longer needed since cgroup v2 Signed-off-by: Akihiro Suda <[email protected]> (cherry picked from commit 8ffb03d) (cherry-pick was not clean) Signed-off-by: Akihiro Suda <[email protected]>
1 parent b0d49cd commit 7a0c8b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/cri/server/service_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const networkAttachCount = 2
3333
// initPlatform handles linux specific initialization for the CRI service.
3434
func (c *criService) initPlatform() (err error) {
3535
if userns.RunningInUserNS() {
36-
if !(c.config.DisableCgroup && !c.apparmorEnabled() && c.config.RestrictOOMScoreAdj) {
37-
logrus.Warn("Running containerd in a user namespace typically requires disable_cgroup, disable_apparmor, restrict_oom_score_adj set to be true")
36+
if c.apparmorEnabled() || !c.config.RestrictOOMScoreAdj {
37+
logrus.Warn("Running CRI plugin in a user namespace typically requires disable_apparmor and restrict_oom_score_adj to be true")
3838
}
3939
}
4040

0 commit comments

Comments
 (0)