Skip to content

Commit c9b8b74

Browse files
authored
Merge pull request #3147 from bobbypage/upstream/cg2warning
Remove cgroupv2 log warning
2 parents bbda981 + 288b78c commit c9b8b74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

manager/manager.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ func New(memoryCache *memory.InMemoryCache, sysfs sysfs.SysFs, houskeepingConfig
155155
selfContainer := "/"
156156
var err error
157157
// Avoid using GetOwnCgroupPath on cgroup v2 as it is not supported by libcontainer
158-
if cgroups.IsCgroup2UnifiedMode() {
159-
klog.Warningf("Cannot detect current cgroup on cgroup v2")
160-
} else {
158+
if !cgroups.IsCgroup2UnifiedMode() {
161159
selfContainer, err = cgroups.GetOwnCgroup("cpu")
162160
if err != nil {
163161
return nil, err

0 commit comments

Comments
 (0)