Skip to content

Commit

Permalink
Merge pull request #37 from klihub/fixes/use-empty-LinuxMemory
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkarp authored May 4, 2023
2 parents 2a8b655 + 2862d98 commit 9418541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/api/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ func (r *LinuxResources) ToOCI() *rspec.LinuxResources {
if r == nil {
return nil
}
o := &rspec.LinuxResources{}
o := &rspec.LinuxResources{
CPU: &rspec.LinuxCPU{},
Memory: &rspec.LinuxMemory{},
}
if r.Memory != nil {
o.Memory = &rspec.LinuxMemory{
Limit: r.Memory.Limit.Get(),
Expand Down

0 comments on commit 9418541

Please sign in to comment.