kubelet: cpu hard capping is supported on cgroup v2

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-04-03 15:54:00 +02:00
parent 1634d9c120
commit 6d16fee229
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

View File

@ -162,6 +162,7 @@ func validateSystemRequirements(mountUtil mount.Interface) (features, error) {
}
if cgroups.IsCgroup2UnifiedMode() {
f.cpuHardcapping = true
return f, nil
}