Skip to content

Commit

Permalink
Merge pull request #1238 from rhatdan/userns
Browse files Browse the repository at this point in the history
Deprecate UserNSSize, since we don't use it
  • Loading branch information
openshift-merge-robot authored Nov 22, 2022
2 parents f5d94c3 + b29e41a commit 745bc2d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 18 deletions.
5 changes: 0 additions & 5 deletions docs/containers.conf.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,6 @@ Options are:
`private` Create private USER Namespace for the container.
`host` Share host USER Namespace with the container.

**userns_size**=65536

Number of UIDs to allocate for the automatic container creation. UIDs are
allocated from the “container” UIDs listed in /etc/subuid & /etc/subgid.

**utsns**="private"

Default way to to create a UTS namespace for the container.
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ type ContainersConfig struct {
UserNS string `toml:"userns,omitempty"`

// UserNSSize how many UIDs to allocate for automatically created UserNS
// Deprecated: no user of this field is known.
UserNSSize int `toml:"userns_size,omitempty,omitzero"`
}

Expand Down
6 changes: 0 additions & 6 deletions pkg/config/containers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ default_sysctls = [
#
#userns = "host"

# Number of UIDs to allocate for the automatic container creation.
# UIDs are allocated from the "container" UIDs listed in
# /etc/subuid & /etc/subgid
#
#userns_size = 65536

# Default way to to create a UTS namespace for the container
# Options are:
# `private` Create private UTS Namespace for the container.
Expand Down
6 changes: 0 additions & 6 deletions pkg/config/containers.conf-freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ default_sysctls = [
#
#userns = "host"

# Number of UIDs to allocate for the automatic container creation.
# UIDs are allocated from the "container" UIDs listed in
# /etc/subuid & /etc/subgid
#
#userns_size = 65536

# Default way to to create a UTS namespace for the container
# Options are:
# `private` Create private UTS Namespace for the container.
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const (
// DefaultShmSize is the default upper limit on the size of tmpfs mounts.
DefaultShmSize = "65536k"
// DefaultUserNSSize indicates the default number of UIDs allocated for user namespace within a container.
// Deprecated: no user of this field is known.
DefaultUserNSSize = 65536
// OCIBufSize limits maximum LogSizeMax.
OCIBufSize = 8192
Expand Down Expand Up @@ -232,7 +233,7 @@ func DefaultConfig() (*Config, error) {
TZ: "",
Umask: "0022",
UTSNS: "private",
UserNSSize: DefaultUserNSSize,
UserNSSize: DefaultUserNSSize, // Deprecated
},
Network: NetworkConfig{
DefaultNetwork: "podman",
Expand Down

0 comments on commit 745bc2d

Please sign in to comment.