mirror of
https://github.com/containers/podman.git
synced 2025-06-29 15:08:09 +08:00
Bump github.com/containers/common from 0.16.0 to 0.17.0
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.16.0 to 0.17.0. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.16.0...v0.17.0) 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
344a791ac2
commit
ca049ef6f9
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.1-0.20200708111410-d2ea9429455d
|
github.com/containers/buildah v1.15.1-0.20200708111410-d2ea9429455d
|
||||||
github.com/containers/common v0.16.0
|
github.com/containers/common v0.17.0
|
||||||
github.com/containers/conmon v2.0.19+incompatible
|
github.com/containers/conmon v2.0.19+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
@ -73,8 +73,8 @@ github.com/containernetworking/plugins v0.8.6/go.mod h1:qnw5mN19D8fIwkqW7oHHYDHV
|
|||||||
github.com/containers/buildah v1.15.1-0.20200708111410-d2ea9429455d h1:HgJJn1UBFjM464NpEmgLwVje5vSF/fBYAdLLoww9HgU=
|
github.com/containers/buildah v1.15.1-0.20200708111410-d2ea9429455d h1:HgJJn1UBFjM464NpEmgLwVje5vSF/fBYAdLLoww9HgU=
|
||||||
github.com/containers/buildah v1.15.1-0.20200708111410-d2ea9429455d/go.mod h1:HUAiD1mCGPFPcIuk5zls1LElLhXo7Q3hWDwheojjyAs=
|
github.com/containers/buildah v1.15.1-0.20200708111410-d2ea9429455d/go.mod h1:HUAiD1mCGPFPcIuk5zls1LElLhXo7Q3hWDwheojjyAs=
|
||||||
github.com/containers/common v0.15.2/go.mod h1:rhpXuGLTEKsk/xX/x0iKGHjRadMHpBd2ZiNDugwXPEM=
|
github.com/containers/common v0.15.2/go.mod h1:rhpXuGLTEKsk/xX/x0iKGHjRadMHpBd2ZiNDugwXPEM=
|
||||||
github.com/containers/common v0.16.0 h1:zAxDJ2tA2wBEjXwV/+ddC8s1f3MfqulH3waSjKxlX3o=
|
github.com/containers/common v0.17.0 h1:3wkcSLw92UYPEhPSHeG1szyIe1qFgi9Jtj18l/tTii0=
|
||||||
github.com/containers/common v0.16.0/go.mod h1:siKqOA03Bhh7Ss2m7fCsbVvbjwaNqrI+gZtC9FUp+DI=
|
github.com/containers/common v0.17.0/go.mod h1:bG22Wvr0iyWJ8UvIkL5dA5OEZFDqAJx1MejmWZb51HE=
|
||||||
github.com/containers/conmon v2.0.19+incompatible h1:1bDVRvHy2MUNTUT/SW6LlHsJHQBTSwXvnKNdcB/a1vQ=
|
github.com/containers/conmon v2.0.19+incompatible h1:1bDVRvHy2MUNTUT/SW6LlHsJHQBTSwXvnKNdcB/a1vQ=
|
||||||
github.com/containers/conmon v2.0.19+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
|
github.com/containers/conmon v2.0.19+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
|
||||||
github.com/containers/image/v5 v5.5.1 h1:h1FCOXH6Ux9/p/E4rndsQOC4yAdRU0msRTfLVeQ7FDQ=
|
github.com/containers/image/v5 v5.5.1 h1:h1FCOXH6Ux9/p/E4rndsQOC4yAdRU0msRTfLVeQ7FDQ=
|
||||||
|
22
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
22
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -622,9 +622,17 @@ func (c *ContainersConfig) Validate() error {
|
|||||||
// execution checks. It returns an `error` on validation failure, otherwise
|
// execution checks. It returns an `error` on validation failure, otherwise
|
||||||
// `nil`.
|
// `nil`.
|
||||||
func (c *NetworkConfig) Validate() error {
|
func (c *NetworkConfig) Validate() error {
|
||||||
if c.NetworkConfigDir != _cniConfigDir {
|
expectedConfigDir := _cniConfigDir
|
||||||
err := isDirectory(c.NetworkConfigDir)
|
if unshare.IsRootless() {
|
||||||
|
home, err := unshare.HomeDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
expectedConfigDir = filepath.Join(home, _cniConfigDirRootless)
|
||||||
|
}
|
||||||
|
if c.NetworkConfigDir != expectedConfigDir {
|
||||||
|
err := isDirectory(c.NetworkConfigDir)
|
||||||
|
if err != nil && !os.IsNotExist(err) {
|
||||||
return errors.Wrapf(err, "invalid network_config_dir: %s", c.NetworkConfigDir)
|
return errors.Wrapf(err, "invalid network_config_dir: %s", c.NetworkConfigDir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -874,6 +882,10 @@ func Default() (*Config, error) {
|
|||||||
if config != nil || configErr != nil {
|
if config != nil || configErr != nil {
|
||||||
return config, configErr
|
return config, configErr
|
||||||
}
|
}
|
||||||
|
return defConfig()
|
||||||
|
}
|
||||||
|
|
||||||
|
func defConfig() (*Config, error) {
|
||||||
config, configErr = NewConfig("")
|
config, configErr = NewConfig("")
|
||||||
return config, configErr
|
return config, configErr
|
||||||
}
|
}
|
||||||
@ -969,10 +981,8 @@ func (c *Config) Write() error {
|
|||||||
// the cached containers.conf files.
|
// the cached containers.conf files.
|
||||||
func Reload() (*Config, error) {
|
func Reload() (*Config, error) {
|
||||||
configMutex.Lock()
|
configMutex.Lock()
|
||||||
configErr = nil
|
defer configMutex.Unlock()
|
||||||
config = nil
|
return defConfig()
|
||||||
configMutex.Unlock()
|
|
||||||
return Default()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Config) ActiveDestination() (string, string, error) {
|
func (c *Config) ActiveDestination() (string, string, error) {
|
||||||
|
9
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
9
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@ -92,8 +92,10 @@ const (
|
|||||||
// InstallPrefix is the prefix where podman will be installed.
|
// InstallPrefix is the prefix where podman will be installed.
|
||||||
// It can be overridden at build time.
|
// It can be overridden at build time.
|
||||||
_installPrefix = "/usr"
|
_installPrefix = "/usr"
|
||||||
// _cniConfigDir is the directory where cni plugins are found
|
// _cniConfigDir is the directory where cni configuration is found
|
||||||
_cniConfigDir = "/etc/cni/net.d/"
|
_cniConfigDir = "/etc/cni/net.d/"
|
||||||
|
// _cniConfigDirRootless is the directory where cni plugins are found
|
||||||
|
_cniConfigDirRootless = ".config/cni/net.d/"
|
||||||
// CgroupfsCgroupsManager represents cgroupfs native cgroup manager
|
// CgroupfsCgroupsManager represents cgroupfs native cgroup manager
|
||||||
CgroupfsCgroupsManager = "cgroupfs"
|
CgroupfsCgroupsManager = "cgroupfs"
|
||||||
// DefaultApparmorProfile specifies the default apparmor profile for the container.
|
// DefaultApparmorProfile specifies the default apparmor profile for the container.
|
||||||
@ -138,6 +140,8 @@ func DefaultConfig() (*Config, error) {
|
|||||||
|
|
||||||
netns := "bridge"
|
netns := "bridge"
|
||||||
|
|
||||||
|
cniConfig := _cniConfigDir
|
||||||
|
|
||||||
defaultEngineConfig.SignaturePolicyPath = DefaultSignaturePolicyPath
|
defaultEngineConfig.SignaturePolicyPath = DefaultSignaturePolicyPath
|
||||||
if unshare.IsRootless() {
|
if unshare.IsRootless() {
|
||||||
home, err := unshare.HomeDir()
|
home, err := unshare.HomeDir()
|
||||||
@ -152,6 +156,7 @@ func DefaultConfig() (*Config, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
netns = "slirp4netns"
|
netns = "slirp4netns"
|
||||||
|
cniConfig = filepath.Join(home, _cniConfigDirRootless)
|
||||||
}
|
}
|
||||||
|
|
||||||
cgroupNS := "host"
|
cgroupNS := "host"
|
||||||
@ -198,7 +203,7 @@ func DefaultConfig() (*Config, error) {
|
|||||||
},
|
},
|
||||||
Network: NetworkConfig{
|
Network: NetworkConfig{
|
||||||
DefaultNetwork: "podman",
|
DefaultNetwork: "podman",
|
||||||
NetworkConfigDir: _cniConfigDir,
|
NetworkConfigDir: cniConfig,
|
||||||
CNIPluginDirs: cniBinDir,
|
CNIPluginDirs: cniBinDir,
|
||||||
},
|
},
|
||||||
Engine: *defaultEngineConfig,
|
Engine: *defaultEngineConfig,
|
||||||
|
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.16.0"
|
const Version = "0.17.0"
|
||||||
|
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.16.0
|
# github.com/containers/common v0.17.0
|
||||||
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