From 42b4daaafa5cd940bbe38d3875605970e29a590b Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 23 Oct 2024 16:46:37 -0700 Subject: [PATCH] tests/cmd/sd-helper: switch from configs to cgroups Signed-off-by: Kir Kolyshkin --- tests/cmd/sd-helper/helper.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/cmd/sd-helper/helper.go b/tests/cmd/sd-helper/helper.go index 49b77d004fb..be7de3e5802 100644 --- a/tests/cmd/sd-helper/helper.go +++ b/tests/cmd/sd-helper/helper.go @@ -9,7 +9,6 @@ import ( "github.com/opencontainers/runc/libcontainer/cgroups" "github.com/opencontainers/runc/libcontainer/cgroups/systemd" - "github.com/opencontainers/runc/libcontainer/configs" ) func usage() { @@ -57,7 +56,7 @@ func main() { } } -func newManager(config *configs.Cgroup) (cgroups.Manager, error) { +func newManager(config *cgroups.Cgroup) (cgroups.Manager, error) { if cgroups.IsCgroup2UnifiedMode() { return systemd.NewUnifiedManager(config, "") } @@ -65,10 +64,10 @@ func newManager(config *configs.Cgroup) (cgroups.Manager, error) { } func unitCommand(cmd, name, parent string) error { - podConfig := &configs.Cgroup{ + podConfig := &cgroups.Cgroup{ Name: name, Parent: parent, - Resources: &configs.Resources{}, + Resources: &cgroups.Resources{}, } pm, err := newManager(podConfig) if err != nil {