Skip to content

Commit 2d270b8

Browse files
authored
Merge pull request #431 from mrunalp/bump_spec_v1
Bump up runtime-spec dependency to v1.0.0
2 parents 6210a30 + 20db599 commit 2d270b8

File tree

7 files changed

+206
-15
lines changed

7 files changed

+206
-15
lines changed

Godeps/Godeps.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/oci-runtime-tool/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func setupSpec(g *generate.Generator, context *cli.Context) error {
381381
}
382382

383383
if context.IsSet("linux-disable-oom-kill") {
384-
g.SetLinuxResourcesDisableOOMKiller(context.Bool("linux-disable-oom-kill"))
384+
g.SetLinuxResourcesMemoryDisableOOMKiller(context.Bool("linux-disable-oom-kill"))
385385
}
386386

387387
if context.IsSet("linux-oom-score-adj") {

generate/generate.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,6 @@ func (g *Generator) SetLinuxMountLabel(label string) {
484484
g.spec.Linux.MountLabel = label
485485
}
486486

487-
// SetLinuxResourcesDisableOOMKiller sets g.spec.Linux.Resources.DisableOOMKiller.
488-
func (g *Generator) SetLinuxResourcesDisableOOMKiller(disable bool) {
489-
g.initSpecLinuxResources()
490-
g.spec.Linux.Resources.DisableOOMKiller = &disable
491-
}
492-
493487
// SetProcessOOMScoreAdj sets g.spec.Process.OOMScoreAdj.
494488
func (g *Generator) SetProcessOOMScoreAdj(adj int) {
495489
g.initSpecProcess()
@@ -604,6 +598,12 @@ func (g *Generator) SetLinuxResourcesMemorySwappiness(swappiness uint64) {
604598
g.spec.Linux.Resources.Memory.Swappiness = &swappiness
605599
}
606600

601+
// SetLinuxResourcesMemoryDisableOOMKiller sets g.spec.Linux.Resources.Memory.DisableOOMKiller.
602+
func (g *Generator) SetLinuxResourcesMemoryDisableOOMKiller(disable bool) {
603+
g.initSpecLinuxResourcesMemory()
604+
g.spec.Linux.Resources.Memory.DisableOOMKiller = &disable
605+
}
606+
607607
// SetLinuxResourcesNetworkClassID sets g.spec.Linux.Resources.Network.ClassID.
608608
func (g *Generator) SetLinuxResourcesNetworkClassID(classid uint32) {
609609
g.initSpecLinuxResourcesNetwork()

vendor/github.com/opencontainers/runtime-spec/LICENSE

Lines changed: 191 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/runtime-spec/specs-go/config.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/runtime-spec/specs-go/state.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/runtime-spec/specs-go/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)