kata_agent: disable cgroup namespace

We do not support it yet. If we pass it to the agent, container creation
will fail.

Fixes: #711

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao 2018-09-03 20:08:54 +08:00
parent daa80c244d
commit ec80a55b74

View File

@ -684,6 +684,7 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
var tmpNamespaces []grpc.LinuxNamespace var tmpNamespaces []grpc.LinuxNamespace
for _, ns := range grpcSpec.Linux.Namespaces { for _, ns := range grpcSpec.Linux.Namespaces {
switch ns.Type { switch ns.Type {
case specs.CgroupNamespace:
case specs.NetworkNamespace: case specs.NetworkNamespace:
default: default:
ns.Path = "" ns.Path = ""