diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-06-02 04:33:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 04:33:03 -0400 |
commit | e4e100638dd7e90ecf7a554f68ebc71ea8e58f7b (patch) | |
tree | 3a67cec5fde9abb8aa41db332646ac64d947bbb4 /pkg | |
parent | a208bfaa521ada1a3aa66f609de3f8434c80f896 (diff) | |
parent | f728b7b5a7585cef7f8d612ccf54481c3c6eb556 (diff) | |
download | podman-e4e100638dd7e90ecf7a554f68ebc71ea8e58f7b.tar.gz podman-e4e100638dd7e90ecf7a554f68ebc71ea8e58f7b.tar.bz2 podman-e4e100638dd7e90ecf7a554f68ebc71ea8e58f7b.zip |
Merge pull request #14344 from cdoern/podCreate
podman pod create --uidmap patch
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/specgen/podspecgen.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/specgen/podspecgen.go b/pkg/specgen/podspecgen.go index 603506241..777097ac5 100644 --- a/pkg/specgen/podspecgen.go +++ b/pkg/specgen/podspecgen.go @@ -4,6 +4,7 @@ import ( "net" "github.com/containers/common/libnetwork/types" + storageTypes "github.com/containers/storage/types" spec "github.com/opencontainers/runtime-spec/specs-go" ) @@ -222,6 +223,10 @@ type PodResourceConfig struct { type PodSecurityConfig struct { SecurityOpt []string `json:"security_opt,omitempty"` + // IDMappings are UID and GID mappings that will be used by user + // namespaces. + // Required if UserNS is private. + IDMappings *storageTypes.IDMappingOptions `json:"idmappings,omitempty"` } // NewPodSpecGenerator creates a new pod spec |