Skip to content

Commit

Permalink
Convert couple of cgroups settings to pointers
Browse files Browse the repository at this point in the history
Converting to pointers to be consistent with other cgroups settings.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
  • Loading branch information
mrunalp committed Jan 26, 2016
1 parent a7b5092 commit 3137c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime_config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ type Network struct {
// Set class identifier for container's network packets
ClassID *uint32 `json:"classID"`
// Set priority of network traffic for container
Priorities []InterfacePriority `json:"priorities"`
Priorities []*InterfacePriority `json:"priorities,omitempty"`
}

// Resources has container runtime resource constraints
Expand All @@ -213,7 +213,7 @@ type Resources struct {
// BlockIO restriction configuration
BlockIO *BlockIO `json:"blockIO,omitempty"`
// Hugetlb limit (in bytes)
HugepageLimits []HugepageLimit `json:"hugepageLimits,omitempty"`
HugepageLimits []*HugepageLimit `json:"hugepageLimits,omitempty"`
// Network restriction configuration
Network *Network `json:"network,omitempty"`
}
Expand Down

0 comments on commit 3137c0f

Please sign in to comment.