runtime: Support for host cgroup v2

Support cgroup v2 on the host. Update vendor containerd/cgroups to add cgroup v2.

Fixes: #3073

Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
This commit is contained in:
yaoyinnan
2022-07-14 15:37:22 +08:00
parent 4ab45e5c93
commit 5c3155f7e2
31 changed files with 7179 additions and 125 deletions

View File

@@ -6,7 +6,6 @@
package resourcecontrol
import (
v1 "github.com/containerd/cgroups/stats/v1"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/sirupsen/logrus"
)
@@ -56,7 +55,7 @@ type ResourceController interface {
Delete() error
// Stat returns the statistics for the controller.
Stat() (*v1.Metrics, error)
Stat() (interface{}, error)
// AddProcess adds a process to a set of controllers.
AddProcess(int, ...string) error