diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-09-11 16:50:02 -0400 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-11-07 21:23:23 -0500 |
commit | dcf3c742b1ac4d641d66810113f3d17441a412f4 (patch) | |
tree | 2112a19ba95287179b0a44bbd90719a86d317c5d /pkg/spec/config_unsupported.go | |
parent | 3463a7194c504790e73a1750109c1813a7c3cfe9 (diff) | |
download | podman-dcf3c742b1ac4d641d66810113f3d17441a412f4.tar.gz podman-dcf3c742b1ac4d641d66810113f3d17441a412f4.tar.bz2 podman-dcf3c742b1ac4d641d66810113f3d17441a412f4.zip |
Split up create config handling of namespaces and security
As it stands, createconfig is a huge struct. This works fine when the only caller is when we create a container with a fully created config. However, if we wish to share code for security and namespace configuration, a single large struct becomes unweildy, as well as difficult to configure with the single createConfigToOCISpec function.
This PR breaks up namespace and security configuration into their own structs, with the eventual goal of allowing the namespace/security fields to be configured by the pod create cli, and allow the infra container to share this with the pod's containers.
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'pkg/spec/config_unsupported.go')
-rw-r--r-- | pkg/spec/config_unsupported.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/config_unsupported.go b/pkg/spec/config_unsupported.go index 160414878..a2c7f4416 100644 --- a/pkg/spec/config_unsupported.go +++ b/pkg/spec/config_unsupported.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" ) -func getSeccompConfig(config *CreateConfig, configSpec *spec.Spec) (*spec.LinuxSeccomp, error) { +func getSeccompConfig(config *SecurityConfig, configSpec *spec.Spec) (*spec.LinuxSeccomp, error) { return nil, errors.New("function not supported on non-linux OS's") } func addDevice(g *generate.Generator, device string) error { |