Add cgroupV2 CPUQuotaPeriodUSec support
Addresses https://github.com/containerd/cgroups/issues/365
This change adds CPUQuotaPeriodUSec property for cgroupsv2. Heavily influenced by github.com/opencontainers/cgroups. Refactors a bit of the existing functions for testability.
Added some unit tests for validating the property is properly set.
Looks like might need to resolve CI running on Ubuntu 20 runners, but IDK if there are any tests we can add for this property?
I was able to add some unit tests for the property and CI is now only failing due to Ubuntu 20 runner no longer being available from GitHub.
Needs #368
I rebased this for the CI updates. It should be good to review now.
@containerd/maintainers Checking if we can merge this PR. Thank You
@containerd/maintainers Can we merge this one? Thank You