removed e2e tests for cgroups2 and associated functions

This commit is contained in:
Nicholas Orlowsky 2023-05-11 21:03:12 -04:00
parent 475adf734a
commit c5dad5e461
No known key found for this signature in database
GPG key ID: 58832FD3AC16C706
5 changed files with 21 additions and 137 deletions

View file

@ -60,10 +60,6 @@ func NumCPU() int {
return int(math.Ceil(float64(cpuQuota) / float64(cpuPeriod)))
}
func IsCgroupAvaliable() bool {
return true
}
func getCgroupVersion() int64 {
// /sys/fs/cgroup/cgroup.controllers will not exist with cgroupsv1
if _, err := os.Stat("/sys/fs/cgroup/cgroup.controllers"); err == nil {