Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: revert apply devices constraints
Browse files Browse the repository at this point in the history
Due to issue #677
commit 137769a must be reverted

This reverts commit 137769a.

fixes #685

Signed-off-by: Julio Montes <[email protected]>
  • Loading branch information
Julio Montes committed Aug 31, 2018
1 parent 7d5a5a7 commit 4307982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
// By now only CPU constraints are supported
// Issue: https://github.com/kata-containers/runtime/issues/158
// Issue: https://github.com/kata-containers/runtime/issues/204
grpcSpec.Linux.Resources.Devices = nil
grpcSpec.Linux.Resources.Pids = nil
grpcSpec.Linux.Resources.BlockIO = nil
grpcSpec.Linux.Resources.HugepageLimits = nil
Expand Down
2 changes: 1 addition & 1 deletion virtcontainers/kata_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func TestConstraintGRPCSpec(t *testing.T) {
// check nil fields
assert.Nil(g.Hooks)
assert.Nil(g.Linux.Seccomp)
assert.NotNil(g.Linux.Resources.Devices)
assert.Nil(g.Linux.Resources.Devices)
assert.NotNil(g.Linux.Resources.Memory)
assert.Nil(g.Linux.Resources.Pids)
assert.Nil(g.Linux.Resources.BlockIO)
Expand Down

0 comments on commit 4307982

Please sign in to comment.