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
The existing function, ConvertCPUSharesToCgroupV2Value, do not have a
way to return an error, and thus can accept invalid cgroup v1
(cpu-shares) values and can return invalid cgroup v2 (cpu-weight)
values.
Add a new one, ConvertCPUSharesToCPUWeight, which is identical but can
return meaningful errors. Mark the old one as deprecated. Amend the test
case to test the new implementation (and, since both are using the same
formula, existing implementation is tested, too, except for 0).
Related to runc issue 4755.
Signed-off-by: Kir Kolyshkin <[email protected]>
0 commit comments