mirror of
https://github.com/containers/podman.git
synced 2025-12-07 14:20:44 +08:00
Add support for shm-size.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #206 Approved by: TomSweeneyRedHat
This commit is contained in:
committed by
Atomic Bot
parent
e6be800ec6
commit
dd0d35deb0
63
vendor/github.com/opencontainers/runtime-tools/generate/spec.go
generated
vendored
63
vendor/github.com/opencontainers/runtime-tools/generate/spec.go
generated
vendored
@@ -59,6 +59,13 @@ func (g *Generator) initSpecLinux() {
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecLinuxIntelRdt() {
|
||||
g.initSpecLinux()
|
||||
if g.spec.Linux.IntelRdt == nil {
|
||||
g.spec.Linux.IntelRdt = &rspec.LinuxIntelRdt{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecLinuxSysctl() {
|
||||
g.initSpecLinux()
|
||||
if g.spec.Linux.Sysctl == nil {
|
||||
@@ -80,6 +87,13 @@ func (g *Generator) initSpecLinuxResources() {
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecLinuxResourcesBlockIO() {
|
||||
g.initSpecLinuxResources()
|
||||
if g.spec.Linux.Resources.BlockIO == nil {
|
||||
g.spec.Linux.Resources.BlockIO = &rspec.LinuxBlockIO{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecLinuxResourcesCPU() {
|
||||
g.initSpecLinuxResources()
|
||||
if g.spec.Linux.Resources.CPU == nil {
|
||||
@@ -107,3 +121,52 @@ func (g *Generator) initSpecLinuxResourcesPids() {
|
||||
g.spec.Linux.Resources.Pids = &rspec.LinuxPids{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecSolaris() {
|
||||
g.initSpec()
|
||||
if g.spec.Solaris == nil {
|
||||
g.spec.Solaris = &rspec.Solaris{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecSolarisCappedCPU() {
|
||||
g.initSpecSolaris()
|
||||
if g.spec.Solaris.CappedCPU == nil {
|
||||
g.spec.Solaris.CappedCPU = &rspec.SolarisCappedCPU{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecSolarisCappedMemory() {
|
||||
g.initSpecSolaris()
|
||||
if g.spec.Solaris.CappedMemory == nil {
|
||||
g.spec.Solaris.CappedMemory = &rspec.SolarisCappedMemory{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecWindows() {
|
||||
g.initSpec()
|
||||
if g.spec.Windows == nil {
|
||||
g.spec.Windows = &rspec.Windows{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecWindowsHyperV() {
|
||||
g.initSpecWindows()
|
||||
if g.spec.Windows.HyperV == nil {
|
||||
g.spec.Windows.HyperV = &rspec.WindowsHyperV{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecWindowsResources() {
|
||||
g.initSpecWindows()
|
||||
if g.spec.Windows.Resources == nil {
|
||||
g.spec.Windows.Resources = &rspec.WindowsResources{}
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Generator) initSpecWindowsResourcesMemory() {
|
||||
g.initSpecWindowsResources()
|
||||
if g.spec.Windows.Resources.Memory == nil {
|
||||
g.spec.Windows.Resources.Memory = &rspec.WindowsMemoryResources{}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user