File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 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
1514func 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
6766func 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 {
You can’t perform that action at this time.
0 commit comments