mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-14 13:29:31 +00:00
virtcontainers: kata_agent: enable cpus and mem sets
this patch is to honour docker `--cpuset-cpus` and `--cpuset-mems` options. fixes #221 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -579,8 +579,6 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
|
|||||||
grpcSpec.Linux.Resources.BlockIO = nil
|
grpcSpec.Linux.Resources.BlockIO = nil
|
||||||
grpcSpec.Linux.Resources.HugepageLimits = nil
|
grpcSpec.Linux.Resources.HugepageLimits = nil
|
||||||
grpcSpec.Linux.Resources.Network = nil
|
grpcSpec.Linux.Resources.Network = nil
|
||||||
grpcSpec.Linux.Resources.CPU.Cpus = ""
|
|
||||||
grpcSpec.Linux.Resources.CPU.Mems = ""
|
|
||||||
|
|
||||||
// Disable network namespace since it is already handled on the host by
|
// Disable network namespace since it is already handled on the host by
|
||||||
// virtcontainers. The network is a complex part which cannot be simply
|
// virtcontainers. The network is a complex part which cannot be simply
|
||||||
|
Reference in New Issue
Block a user