add cl-k8s

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

add attributes

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-20 02:02:00 -04:00
parent 026845b5d4
commit 1d95b0a02a
6 changed files with 202 additions and 9 deletions

View file

@ -18,6 +18,7 @@ type SpecOpts struct {
Readonly bool
Terminal bool
Args []string
Mounts []specs.Mount
Hooks *specs.Hooks
}
@ -55,5 +56,9 @@ func Spec(opts SpecOpts) *specs.Spec {
spec.Process.Args = opts.Args
}
if opts.Mounts != nil {
spec.Mounts = append(spec.Mounts, opts.Mounts...)
}
return spec
}