feature: support Memory QoS for cgroups v2
This commit is contained in:
@@ -19,6 +19,8 @@ package app
|
||||
import (
|
||||
"k8s.io/klog/v2"
|
||||
"k8s.io/utils/inotify"
|
||||
|
||||
libcontainercgroups "github.com/opencontainers/runc/libcontainer/cgroups"
|
||||
)
|
||||
|
||||
func watchForLockfileContention(path string, done chan struct{}) error {
|
||||
@@ -44,3 +46,7 @@ func watchForLockfileContention(path string, done chan struct{}) error {
|
||||
}()
|
||||
return nil
|
||||
}
|
||||
|
||||
func isCgroup2UnifiedMode() bool {
|
||||
return libcontainercgroups.IsCgroup2UnifiedMode()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user