mirror of
https://github.com/containers/podman.git
synced 2025-12-01 10:38:05 +08:00
Vendor in latest containers/(storage, common, image)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
11
vendor/github.com/containers/common/libnetwork/netavark/config.go
generated
vendored
11
vendor/github.com/containers/common/libnetwork/netavark/config.go
generated
vendored
@@ -57,6 +57,17 @@ func (n *netavarkNetwork) NetworkUpdate(name string, options types.NetworkUpdate
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Nameservers must be IP Addresses.
|
||||
for _, dnsServer := range options.AddDNSServers {
|
||||
if net.ParseIP(dnsServer) == nil {
|
||||
return fmt.Errorf("unable to parse ip %s specified in AddDNSServer: %w", dnsServer, types.ErrInvalidArg)
|
||||
}
|
||||
}
|
||||
for _, dnsServer := range options.RemoveDNSServers {
|
||||
if net.ParseIP(dnsServer) == nil {
|
||||
return fmt.Errorf("unable to parse ip %s specified in RemoveDNSServer: %w", dnsServer, types.ErrInvalidArg)
|
||||
}
|
||||
}
|
||||
networkDNSServersBefore := network.NetworkDNSServers
|
||||
networkDNSServersAfter := []string{}
|
||||
for _, server := range networkDNSServersBefore {
|
||||
|
||||
8
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
8
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@@ -109,6 +109,10 @@ type ContainersConfig struct {
|
||||
// Default cgroup configuration
|
||||
Cgroups string `toml:"cgroups,omitempty"`
|
||||
|
||||
// CgroupConf entries specifies a list of cgroup files to write to and their values. For example
|
||||
// "memory.high=1073741824" sets the memory.high limit to 1GB.
|
||||
CgroupConf []string `toml:"cgroup_conf,omitempty"`
|
||||
|
||||
// Capabilities to add to all containers.
|
||||
DefaultCapabilities []string `toml:"default_capabilities,omitempty"`
|
||||
|
||||
@@ -180,6 +184,10 @@ type ContainersConfig struct {
|
||||
// NoHosts tells container engine whether to create its own /etc/hosts
|
||||
NoHosts bool `toml:"no_hosts,omitempty"`
|
||||
|
||||
// OOMScoreAdj tunes the host's OOM preferences for containers
|
||||
// (accepts values from -1000 to 1000).
|
||||
OOMScoreAdj *int `toml:"oom_score_adj,omitempty"`
|
||||
|
||||
// PidsLimit is the number of processes each container is restricted to
|
||||
// by the cgroup process number controller.
|
||||
PidsLimit int64 `toml:"pids_limit,omitempty,omitzero"`
|
||||
|
||||
9
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
9
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
@@ -33,6 +33,11 @@
|
||||
#
|
||||
#base_hosts_file = ""
|
||||
|
||||
# List of cgroup_conf entries specifying a list of cgroup files to write to and
|
||||
# their values. For example `memory.high=1073741824` sets the
|
||||
# memory.high limit to 1GB.
|
||||
# cgroup_conf = []
|
||||
|
||||
# Default way to to create a cgroup namespace for the container
|
||||
# Options are:
|
||||
# `private` Create private Cgroup Namespace for the container.
|
||||
@@ -197,6 +202,10 @@ default_sysctls = [
|
||||
#
|
||||
#no_hosts = false
|
||||
|
||||
# Tune the host's OOM preferences for containers
|
||||
# (accepts values from -1000 to 1000).
|
||||
#oom_score_adj = 0
|
||||
|
||||
# Default way to to create a PID namespace for the container
|
||||
# Options are:
|
||||
# `private` Create private PID Namespace for the container.
|
||||
|
||||
Reference in New Issue
Block a user