mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
Bump github.com/containers/common from 0.14.3 to 0.15.1
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.14.3 to 0.15.1. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.14.3...v0.15.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
![27856297+dependabot-preview[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Daniel J Walsh

parent
957e7a533e
commit
cd9d4f376d
2
go.mod
2
go.mod
@ -11,7 +11,7 @@ require (
|
|||||||
github.com/containernetworking/cni v0.7.2-0.20200304161608-4fae32b84921
|
github.com/containernetworking/cni v0.7.2-0.20200304161608-4fae32b84921
|
||||||
github.com/containernetworking/plugins v0.8.6
|
github.com/containernetworking/plugins v0.8.6
|
||||||
github.com/containers/buildah v1.15.0
|
github.com/containers/buildah v1.15.0
|
||||||
github.com/containers/common v0.14.3
|
github.com/containers/common v0.15.1
|
||||||
github.com/containers/conmon v2.0.18+incompatible
|
github.com/containers/conmon v2.0.18+incompatible
|
||||||
github.com/containers/image/v5 v5.5.1
|
github.com/containers/image/v5 v5.5.1
|
||||||
github.com/containers/psgo v1.5.1
|
github.com/containers/psgo v1.5.1
|
||||||
|
4
go.sum
4
go.sum
@ -70,8 +70,8 @@ github.com/containers/buildah v1.15.0 h1:p9cYJwcQ5Fnv0iBeHAFwHR0K+kcv7LbyAjUtc+H
|
|||||||
github.com/containers/buildah v1.15.0/go.mod h1:j0AY2kWpmaOPPV5GKDJY9dMtekk5WMmMhcB+z0OW+vc=
|
github.com/containers/buildah v1.15.0/go.mod h1:j0AY2kWpmaOPPV5GKDJY9dMtekk5WMmMhcB+z0OW+vc=
|
||||||
github.com/containers/common v0.14.0 h1:hiZFDPf6ajKiDmojN5f5X3gboKPO73NLrYb0RXfrQiA=
|
github.com/containers/common v0.14.0 h1:hiZFDPf6ajKiDmojN5f5X3gboKPO73NLrYb0RXfrQiA=
|
||||||
github.com/containers/common v0.14.0/go.mod h1:9olhlE+WhYof1npnMJdyRMX14/yIUint6zyHzcyRVAg=
|
github.com/containers/common v0.14.0/go.mod h1:9olhlE+WhYof1npnMJdyRMX14/yIUint6zyHzcyRVAg=
|
||||||
github.com/containers/common v0.14.3 h1:LNsRPkap5Q/EqPyhiLKRZg8u629U8CEeoB49ilG6ZR4=
|
github.com/containers/common v0.15.1 h1:ycIJf7ugHf0f2ag9uYFijQLbcrPu1KnOqdARgs2XbRU=
|
||||||
github.com/containers/common v0.14.3/go.mod h1:9olhlE+WhYof1npnMJdyRMX14/yIUint6zyHzcyRVAg=
|
github.com/containers/common v0.15.1/go.mod h1:zJ/BLqK6INqFOCxN/gh9ae1qqWD/ghk2T0jAYqz/Xq4=
|
||||||
github.com/containers/conmon v2.0.18+incompatible h1:rjwjNnE756NuXcdE/uUmj4kDbrykslPuBMHI31wh43E=
|
github.com/containers/conmon v2.0.18+incompatible h1:rjwjNnE756NuXcdE/uUmj4kDbrykslPuBMHI31wh43E=
|
||||||
github.com/containers/conmon v2.0.18+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
|
github.com/containers/conmon v2.0.18+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
|
||||||
github.com/containers/image/v5 v5.4.4/go.mod h1:g7cxNXitiLi6pEr9/L9n/0wfazRuhDKXU15kV86N8h8=
|
github.com/containers/image/v5 v5.4.4/go.mod h1:g7cxNXitiLi6pEr9/L9n/0wfazRuhDKXU15kV86N8h8=
|
||||||
|
34
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
34
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -165,6 +165,9 @@ type ContainersConfig struct {
|
|||||||
// ShmSize holds the size of /dev/shm.
|
// ShmSize holds the size of /dev/shm.
|
||||||
ShmSize string `toml:"shm_size,omitempty"`
|
ShmSize string `toml:"shm_size,omitempty"`
|
||||||
|
|
||||||
|
//TZ sets the timezone inside the container
|
||||||
|
TZ string `toml:"tz,omitempty"`
|
||||||
|
|
||||||
// UTSNS indicates how to create a UTS namespace for the container
|
// UTSNS indicates how to create a UTS namespace for the container
|
||||||
UTSNS string `toml:"utsns,omitempty"`
|
UTSNS string `toml:"utsns,omitempty"`
|
||||||
|
|
||||||
@ -207,6 +210,9 @@ type EngineConfig struct {
|
|||||||
// memory.
|
// memory.
|
||||||
EnablePortReservation bool `toml:"enable_port_reservation,omitempty"`
|
EnablePortReservation bool `toml:"enable_port_reservation,omitempty"`
|
||||||
|
|
||||||
|
// Environment variables to be used when running the container engine (e.g., Podman, Buildah). For example "http_proxy=internal.proxy.company.com"
|
||||||
|
Env []string `toml:"env,omitempty"`
|
||||||
|
|
||||||
// EventsLogFilePath is where the events log is stored.
|
// EventsLogFilePath is where the events log is stored.
|
||||||
EventsLogFilePath string `toml:"events_logfile_path,omitempty"`
|
EventsLogFilePath string `toml:"events_logfile_path,omitempty"`
|
||||||
|
|
||||||
@ -416,11 +422,10 @@ func NewConfig(userConfigPath string) (*Config, error) {
|
|||||||
// Merge changes in later configs with the previous configs.
|
// Merge changes in later configs with the previous configs.
|
||||||
// Each config file that specified fields, will override the
|
// Each config file that specified fields, will override the
|
||||||
// previous fields.
|
// previous fields.
|
||||||
config, err := readConfigFromFile(path, config)
|
if err = readConfigFromFile(path, config); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, errors.Wrapf(err, "error reading system config %q", path)
|
return nil, errors.Wrapf(err, "error reading system config %q", path)
|
||||||
}
|
}
|
||||||
logrus.Debugf("Merged system config %q: %v", path, config)
|
logrus.Debugf("Merged system config %q: %+v", path, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the caller specified a config path to use, then we read it to
|
// If the caller specified a config path to use, then we read it to
|
||||||
@ -429,11 +434,10 @@ func NewConfig(userConfigPath string) (*Config, error) {
|
|||||||
var err error
|
var err error
|
||||||
// readConfigFromFile reads in container config in the specified
|
// readConfigFromFile reads in container config in the specified
|
||||||
// file and then merge changes with the current default.
|
// file and then merge changes with the current default.
|
||||||
config, err = readConfigFromFile(userConfigPath, config)
|
if err = readConfigFromFile(userConfigPath, config); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, errors.Wrapf(err, "error reading user config %q", userConfigPath)
|
return nil, errors.Wrapf(err, "error reading user config %q", userConfigPath)
|
||||||
}
|
}
|
||||||
logrus.Debugf("Merged user config %q: %v", userConfigPath, config)
|
logrus.Debugf("Merged user config %q: %+v", userConfigPath, config)
|
||||||
}
|
}
|
||||||
config.addCAPPrefix()
|
config.addCAPPrefix()
|
||||||
|
|
||||||
@ -448,13 +452,12 @@ func NewConfig(userConfigPath string) (*Config, error) {
|
|||||||
// unmarshal its content into a Config. The config param specifies the previous
|
// unmarshal its content into a Config. The config param specifies the previous
|
||||||
// default config. If the path, only specifies a few fields in the Toml file
|
// default config. If the path, only specifies a few fields in the Toml file
|
||||||
// the defaults from the config parameter will be used for all other fields.
|
// the defaults from the config parameter will be used for all other fields.
|
||||||
func readConfigFromFile(path string, config *Config) (*Config, error) {
|
func readConfigFromFile(path string, config *Config) error {
|
||||||
logrus.Debugf("Reading configuration file %q", path)
|
logrus.Debugf("Reading configuration file %q", path)
|
||||||
_, err := toml.DecodeFile(path, config)
|
if _, err := toml.DecodeFile(path, config); err != nil {
|
||||||
if err != nil {
|
return errors.Wrapf(err, "unable to decode configuration %v", path)
|
||||||
return nil, fmt.Errorf("unable to decode configuration %v: %v", path, err)
|
|
||||||
}
|
}
|
||||||
return config, err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the list of configuration files, if they exist in order of hierarchy.
|
// Returns the list of configuration files, if they exist in order of hierarchy.
|
||||||
@ -465,7 +468,7 @@ func systemConfigs() ([]string, error) {
|
|||||||
path := os.Getenv("CONTAINERS_CONF")
|
path := os.Getenv("CONTAINERS_CONF")
|
||||||
if path != "" {
|
if path != "" {
|
||||||
if _, err := os.Stat(path); err != nil {
|
if _, err := os.Stat(path); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to stat of %s from CONTAINERS_CONF environment variable")
|
return nil, errors.Wrapf(err, "failed to stat of %s from CONTAINERS_CONF environment variable", path)
|
||||||
}
|
}
|
||||||
return append(configs, path), nil
|
return append(configs, path), nil
|
||||||
}
|
}
|
||||||
@ -575,6 +578,10 @@ func (c *ContainersConfig) Validate() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := c.validateTZ(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if c.LogSizeMax >= 0 && c.LogSizeMax < OCIBufSize {
|
if c.LogSizeMax >= 0 && c.LogSizeMax < OCIBufSize {
|
||||||
return fmt.Errorf("log size max should be negative or >= %d", OCIBufSize)
|
return fmt.Errorf("log size max should be negative or >= %d", OCIBufSize)
|
||||||
}
|
}
|
||||||
@ -892,8 +899,7 @@ func ReadCustomConfig() (*Config, error) {
|
|||||||
|
|
||||||
newConfig := &Config{}
|
newConfig := &Config{}
|
||||||
if _, err := os.Stat(path); err == nil {
|
if _, err := os.Stat(path); err == nil {
|
||||||
newConfig, err = readConfigFromFile(path, newConfig)
|
if err = readConfigFromFile(path, newConfig); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
12
vendor/github.com/containers/common/pkg/config/config_local.go
generated
vendored
12
vendor/github.com/containers/common/pkg/config/config_local.go
generated
vendored
@ -76,6 +76,18 @@ func (c *ContainersConfig) validateUlimits() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *ContainersConfig) validateTZ() error {
|
||||||
|
if c.TZ == "local" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
zonePath := filepath.Join("/usr/share/zoneinfo", c.TZ)
|
||||||
|
_, err := os.Stat(zonePath)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Unrecognized timezone %s", zonePath)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func isRemote() bool {
|
func isRemote() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
4
vendor/github.com/containers/common/pkg/config/config_remote.go
generated
vendored
4
vendor/github.com/containers/common/pkg/config/config_remote.go
generated
vendored
@ -23,3 +23,7 @@ func (c *ContainersConfig) validateDevices() error {
|
|||||||
func (c *ContainersConfig) validateUlimits() error {
|
func (c *ContainersConfig) validateUlimits() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *ContainersConfig) validateTZ() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
25
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
25
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
@ -205,6 +205,11 @@
|
|||||||
#
|
#
|
||||||
# shm_size = "65536k"
|
# shm_size = "65536k"
|
||||||
|
|
||||||
|
# Set timezone in container. Takes IANA timezones as well as "local",
|
||||||
|
# which sets the timezone in the container to match the host machine.
|
||||||
|
#
|
||||||
|
# tz = ""
|
||||||
|
|
||||||
# Default way to to create a UTS namespace for the container
|
# Default way to to create a UTS namespace for the container
|
||||||
# Options are:
|
# Options are:
|
||||||
# `private` Create private UTS Namespace for the container.
|
# `private` Create private UTS Namespace for the container.
|
||||||
@ -279,6 +284,12 @@
|
|||||||
#
|
#
|
||||||
# enable_port_reservation = true
|
# enable_port_reservation = true
|
||||||
|
|
||||||
|
# Environment variables to be used when running the container engine (e.g., Podman, Buildah).
|
||||||
|
# For example "http_proxy=internal.proxy.company.com".
|
||||||
|
# Note these environment variables will not be used within the container.
|
||||||
|
# Set the env section under [containers] table, if you want to set environment variables for the container.
|
||||||
|
# env = []
|
||||||
|
|
||||||
# Selects which logging mechanism to use for container engine events.
|
# Selects which logging mechanism to use for container engine events.
|
||||||
# Valid values are `journald`, `file` and `none`.
|
# Valid values are `journald`, `file` and `none`.
|
||||||
#
|
#
|
||||||
@ -329,6 +340,14 @@
|
|||||||
# Whether to pull new image before running a container
|
# Whether to pull new image before running a container
|
||||||
# pull_policy = "missing"
|
# pull_policy = "missing"
|
||||||
|
|
||||||
|
# Default Remote URI to access the Podman service.
|
||||||
|
# Examples:
|
||||||
|
# rootless "unix://run/user/$UID/podman/podman.sock" (Default)
|
||||||
|
# rootfull "unix://run/podman/podman.sock.(Default)
|
||||||
|
# remote rootless ssh://engineering.lab.company.com/run/user/1000/podman/podman.sock
|
||||||
|
# remote rootfull ssh://root@10.10.1.136:22/run/podman/podman.sock
|
||||||
|
# remote_uri= ""
|
||||||
|
|
||||||
# Directory for persistent engine files (database, etc)
|
# Directory for persistent engine files (database, etc)
|
||||||
# By default, this will be configured relative to where the containers/storage
|
# By default, this will be configured relative to where the containers/storage
|
||||||
# stores containers
|
# stores containers
|
||||||
@ -364,6 +383,9 @@
|
|||||||
#
|
#
|
||||||
# runtime_supports_kvm = ["kata"]
|
# runtime_supports_kvm = ["kata"]
|
||||||
|
|
||||||
|
# Number of seconds to wait for container to exit before sending kill signal.
|
||||||
|
# stop_timeout = 10
|
||||||
|
|
||||||
# Paths to look for a valid OCI runtime (runc, runv, kata, etc)
|
# Paths to look for a valid OCI runtime (runc, runv, kata, etc)
|
||||||
[engine.runtimes]
|
[engine.runtimes]
|
||||||
# runc = [
|
# runc = [
|
||||||
@ -397,9 +419,6 @@
|
|||||||
# "/usr/bin/kata-fc",
|
# "/usr/bin/kata-fc",
|
||||||
# ]
|
# ]
|
||||||
|
|
||||||
# Number of seconds to wait for container to exit before sending kill signal.
|
|
||||||
#stop_timeout = 10
|
|
||||||
|
|
||||||
# The [engine.runtimes] table MUST be the last entry in this file.
|
# The [engine.runtimes] table MUST be the last entry in this file.
|
||||||
# (Unless another table is added)
|
# (Unless another table is added)
|
||||||
# TOML does not provide a way to end a table other than a further table being
|
# TOML does not provide a way to end a table other than a further table being
|
||||||
|
6
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
6
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@ -191,6 +191,7 @@ func DefaultConfig() (*Config, error) {
|
|||||||
PidNS: "private",
|
PidNS: "private",
|
||||||
SeccompProfile: SeccompDefaultPath,
|
SeccompProfile: SeccompDefaultPath,
|
||||||
ShmSize: DefaultShmSize,
|
ShmSize: DefaultShmSize,
|
||||||
|
TZ: "",
|
||||||
UTSNS: "private",
|
UTSNS: "private",
|
||||||
UserNS: "host",
|
UserNS: "host",
|
||||||
UserNSSize: DefaultUserNSSize,
|
UserNSSize: DefaultUserNSSize,
|
||||||
@ -498,3 +499,8 @@ func (c *Config) PidsLimit() int64 {
|
|||||||
func (c *Config) DetachKeys() string {
|
func (c *Config) DetachKeys() string {
|
||||||
return c.Engine.DetachKeys
|
return c.Engine.DetachKeys
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tz returns the timezone in the container
|
||||||
|
func (c *Config) TZ() string {
|
||||||
|
return c.Containers.TZ
|
||||||
|
}
|
||||||
|
2
vendor/github.com/containers/common/version/version.go
generated
vendored
2
vendor/github.com/containers/common/version/version.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
package version
|
package version
|
||||||
|
|
||||||
// Version is the version of the build.
|
// Version is the version of the build.
|
||||||
const Version = "0.14.3"
|
const Version = "0.15.1"
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -84,7 +84,7 @@ github.com/containers/buildah/pkg/secrets
|
|||||||
github.com/containers/buildah/pkg/supplemented
|
github.com/containers/buildah/pkg/supplemented
|
||||||
github.com/containers/buildah/pkg/umask
|
github.com/containers/buildah/pkg/umask
|
||||||
github.com/containers/buildah/util
|
github.com/containers/buildah/util
|
||||||
# github.com/containers/common v0.14.3
|
# github.com/containers/common v0.15.1
|
||||||
github.com/containers/common/pkg/apparmor
|
github.com/containers/common/pkg/apparmor
|
||||||
github.com/containers/common/pkg/auth
|
github.com/containers/common/pkg/auth
|
||||||
github.com/containers/common/pkg/capabilities
|
github.com/containers/common/pkg/capabilities
|
||||||
|
Reference in New Issue
Block a user