Vendor in runtime-spec & runtime-tools from github.com/opencontainers

Signed-off-by: Madhan Raj Mookkandy <madhanm@microsoft.com>
This commit is contained in:
Madhan Raj Mookkandy
2018-09-21 14:42:34 -07:00
parent 8d7b0e20b5
commit 5d777b2e35
5 changed files with 22 additions and 13 deletions

View File

@@ -94,7 +94,8 @@ func (g *Generator) initConfigLinuxResourcesBlockIO() {
}
}
func (g *Generator) initConfigLinuxResourcesCPU() {
// InitConfigLinuxResourcesCPU initializes CPU of Linux resources
func (g *Generator) InitConfigLinuxResourcesCPU() {
g.initConfigLinuxResources()
if g.Config.Linux.Resources.CPU == nil {
g.Config.Linux.Resources.CPU = &rspec.LinuxCPU{}