Skip to content

Commit 5a838cc

Browse files
committed
tests/cmd/sd-helper: switch from configs to cgroups
Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent a56f85f commit 5a838cc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/cmd/sd-helper/helper.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
"github.com/opencontainers/runc/libcontainer/cgroups"
1111
"github.com/opencontainers/runc/libcontainer/cgroups/systemd"
12-
"github.com/opencontainers/runc/libcontainer/configs"
1312
)
1413

1514
func usage() {
@@ -57,18 +56,18 @@ func main() {
5756
}
5857
}
5958

60-
func newManager(config *configs.Cgroup) (cgroups.Manager, error) {
59+
func newManager(config *cgroups.Cgroup) (cgroups.Manager, error) {
6160
if cgroups.IsCgroup2UnifiedMode() {
6261
return systemd.NewUnifiedManager(config, "")
6362
}
6463
return systemd.NewLegacyManager(config, nil)
6564
}
6665

6766
func unitCommand(cmd, name, parent string) error {
68-
podConfig := &configs.Cgroup{
67+
podConfig := &cgroups.Cgroup{
6968
Name: name,
7069
Parent: parent,
71-
Resources: &configs.Resources{},
70+
Resources: &cgroups.Resources{},
7271
}
7372
pm, err := newManager(podConfig)
7473
if err != nil {

0 commit comments

Comments
 (0)