mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-28 20:41:04 +00:00
Merge pull request #657 from devimc/topic/applyConstraints
virtcontainers: apply devices constraints
This commit is contained in:
commit
7d14aea067
@ -669,7 +669,6 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
|
|||||||
// By now only CPU constraints are supported
|
// By now only CPU constraints are supported
|
||||||
// Issue: https://github.com/kata-containers/runtime/issues/158
|
// Issue: https://github.com/kata-containers/runtime/issues/158
|
||||||
// Issue: https://github.com/kata-containers/runtime/issues/204
|
// Issue: https://github.com/kata-containers/runtime/issues/204
|
||||||
grpcSpec.Linux.Resources.Devices = nil
|
|
||||||
grpcSpec.Linux.Resources.Pids = nil
|
grpcSpec.Linux.Resources.Pids = nil
|
||||||
grpcSpec.Linux.Resources.BlockIO = nil
|
grpcSpec.Linux.Resources.BlockIO = nil
|
||||||
grpcSpec.Linux.Resources.HugepageLimits = nil
|
grpcSpec.Linux.Resources.HugepageLimits = nil
|
||||||
|
@ -450,7 +450,7 @@ func TestConstraintGRPCSpec(t *testing.T) {
|
|||||||
// check nil fields
|
// check nil fields
|
||||||
assert.Nil(g.Hooks)
|
assert.Nil(g.Hooks)
|
||||||
assert.Nil(g.Linux.Seccomp)
|
assert.Nil(g.Linux.Seccomp)
|
||||||
assert.Nil(g.Linux.Resources.Devices)
|
assert.NotNil(g.Linux.Resources.Devices)
|
||||||
assert.NotNil(g.Linux.Resources.Memory)
|
assert.NotNil(g.Linux.Resources.Memory)
|
||||||
assert.Nil(g.Linux.Resources.Pids)
|
assert.Nil(g.Linux.Resources.Pids)
|
||||||
assert.Nil(g.Linux.Resources.BlockIO)
|
assert.Nil(g.Linux.Resources.BlockIO)
|
||||||
|
Loading…
Reference in New Issue
Block a user