Skip to content

Commit

Permalink
Merge pull request kata-containers#654 from devimc/topic/applyMemCons…
Browse files Browse the repository at this point in the history
…traints

virtcontainers: Apply memory constraints
  • Loading branch information
Julio Montes authored Aug 28, 2018
2 parents dcf3229 + 2677a5f commit a303892
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) {
// 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.Memory = 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 @@ -451,7 +451,7 @@ func TestConstraintGRPCSpec(t *testing.T) {
assert.Nil(g.Hooks)
assert.Nil(g.Linux.Seccomp)
assert.Nil(g.Linux.Resources.Devices)
assert.Nil(g.Linux.Resources.Memory)
assert.NotNil(g.Linux.Resources.Memory)
assert.Nil(g.Linux.Resources.Pids)
assert.Nil(g.Linux.Resources.BlockIO)
assert.Nil(g.Linux.Resources.HugepageLimits)
Expand Down

0 comments on commit a303892

Please sign in to comment.