diff options
author | Matthew Heon <matthew.heon@pm.me> | 2020-04-20 15:32:46 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-04-21 14:38:52 -0400 |
commit | 1cd2b746d0d6a4e8c074bc444b4a4a2afef30d5d (patch) | |
tree | 81833e3654a63e042f7d77b854740003fa0d8b4a /pkg/specgen/generate/oci.go | |
parent | 2ed4a0e35f6182b79976979ecf3f3ab9010417bd (diff) | |
download | podman-1cd2b746d0d6a4e8c074bc444b4a4a2afef30d5d.tar.gz podman-1cd2b746d0d6a4e8c074bc444b4a4a2afef30d5d.tar.bz2 podman-1cd2b746d0d6a4e8c074bc444b4a4a2afef30d5d.zip |
Modify namespace generation code for specgen
Namespaces have now been changed to properly handle all cases.
Spec handling code for namespaces was consolidated in a single
function.
Still missing:
- Image ports
- Pod namespaces likely still broken in Podmanv2
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'pkg/specgen/generate/oci.go')
-rw-r--r-- | pkg/specgen/generate/oci.go | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/pkg/specgen/generate/oci.go b/pkg/specgen/generate/oci.go index fc269cd44..8ca95016e 100644 --- a/pkg/specgen/generate/oci.go +++ b/pkg/specgen/generate/oci.go @@ -217,28 +217,7 @@ func SpecGenToOCI(s *specgen.SpecGenerator, rt *libpod.Runtime, newImage *image. } // NAMESPACES - - if err := pidConfigureGenerator(s, &g); err != nil { - return nil, err - } - - if err := userConfigureGenerator(s, &g); err != nil { - return nil, err - } - - if err := networkConfigureGenerator(s, &g); err != nil { - return nil, err - } - - if err := utsConfigureGenerator(s, &g, rt); err != nil { - return nil, err - } - - if err := ipcConfigureGenerator(s, &g); err != nil { - return nil, err - } - - if err := cgroupConfigureGenerator(s, &g); err != nil { + if err := specConfigureNamespaces(s, &g, rt); err != nil { return nil, err } configSpec := g.Config |