Skip to content

Commit b039c39

Browse files
authored
Merge pull request #3564 from tiborvass/move-cgroups-dep-to-namespaces-pkg
runtime/opts: move WithNamespaceCgroupDeletion from containerd to its own package
2 parents f7bd7e3 + 6624a70 commit b039c39

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/ctr/commands/namespaces/namespaces_linux.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
package namespaces
1818

1919
import (
20-
"github.com/containerd/containerd"
2120
"github.com/containerd/containerd/namespaces"
21+
"github.com/containerd/containerd/runtime/opts"
2222
"github.com/urfave/cli"
2323
)
2424

2525
func deleteOpts(context *cli.Context) []namespaces.DeleteOpts {
26-
var opts []namespaces.DeleteOpts
26+
var delOpts []namespaces.DeleteOpts
2727
if context.Bool("cgroup") {
28-
opts = append(opts, containerd.WithNamespaceCgroupDeletion)
28+
delOpts = append(delOpts, opts.WithNamespaceCgroupDeletion)
2929
}
30-
return opts
30+
return delOpts
3131
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
package containerd
17+
package opts
1818

1919
import (
2020
"context"

0 commit comments

Comments
 (0)