We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7bd7e3 + 6624a70 commit b039c39Copy full SHA for b039c39
2 files changed
cmd/ctr/commands/namespaces/namespaces_linux.go
@@ -17,15 +17,15 @@
17
package namespaces
18
19
import (
20
- "github.com/containerd/containerd"
21
"github.com/containerd/containerd/namespaces"
+ "github.com/containerd/containerd/runtime/opts"
22
"github.com/urfave/cli"
23
)
24
25
func deleteOpts(context *cli.Context) []namespaces.DeleteOpts {
26
- var opts []namespaces.DeleteOpts
+ var delOpts []namespaces.DeleteOpts
27
if context.Bool("cgroup") {
28
- opts = append(opts, containerd.WithNamespaceCgroupDeletion)
+ delOpts = append(delOpts, opts.WithNamespaceCgroupDeletion)
29
}
30
- return opts
+ return delOpts
31
namespaces_opts_linux.go runtime/opts/opts_linux.gonamespaces_opts_linux.go renamed to runtime/opts/opts_linux.go
@@ -14,7 +14,7 @@
14
limitations under the License.
15
*/
16
-package containerd
+package opts
"context"
0 commit comments