mirror of https://github.com/containers/podman.git
spec: remove dead code
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #871 Approved by: mheon
This commit is contained in:
parent
33eb31e031
commit
16ea659757
|
|
@ -153,7 +153,6 @@ func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for _, uidmap := range config.IDMappings.UIDMap {
|
for _, uidmap := range config.IDMappings.UIDMap {
|
||||||
g.AddLinuxUIDMapping(uint32(uidmap.HostID), uint32(uidmap.ContainerID), uint32(uidmap.Size))
|
g.AddLinuxUIDMapping(uint32(uidmap.HostID), uint32(uidmap.ContainerID), uint32(uidmap.Size))
|
||||||
}
|
}
|
||||||
|
|
@ -287,30 +286,6 @@ func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
//Annotations
|
|
||||||
Resources: &configSpec.LinuxResources{
|
|
||||||
BlockIO: &blkio,
|
|
||||||
//HugepageLimits:
|
|
||||||
Network: &configSpec.LinuxNetwork{
|
|
||||||
// ClassID *uint32
|
|
||||||
// Priorites []LinuxInterfacePriority
|
|
||||||
},
|
|
||||||
},
|
|
||||||
//CgroupsPath:
|
|
||||||
//Namespaces: []LinuxNamespace
|
|
||||||
// DefaultAction:
|
|
||||||
// Architectures
|
|
||||||
// Syscalls:
|
|
||||||
},
|
|
||||||
// RootfsPropagation
|
|
||||||
// MaskedPaths
|
|
||||||
// ReadonlyPaths:
|
|
||||||
// IntelRdt
|
|
||||||
},
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// If we cannot add resources be sure everything is cleared out
|
// If we cannot add resources be sure everything is cleared out
|
||||||
if !canAddResources {
|
if !canAddResources {
|
||||||
configSpec.Linux.Resources = &spec.LinuxResources{}
|
configSpec.Linux.Resources = &spec.LinuxResources{}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue