mirror of
https://github.com/containers/podman.git
synced 2025-12-03 11:49:18 +08:00
Update containers/common to latest main
Update the containers/common dependency to the latest main with the needed changes in Podmansh. Signed-off-by: phoenix <felix.niederwanger@suse.com>
This commit is contained in:
23
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
23
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@@ -265,10 +265,11 @@ func defaultConfig() (*Config, error) {
|
||||
CNIPluginDirs: attributedstring.NewSlice(DefaultCNIPluginDirs),
|
||||
NetavarkPluginDirs: attributedstring.NewSlice(DefaultNetavarkPluginDirs),
|
||||
},
|
||||
Engine: *defaultEngineConfig,
|
||||
Secrets: defaultSecretConfig(),
|
||||
Machine: defaultMachineConfig(),
|
||||
Farms: defaultFarmConfig(),
|
||||
Engine: *defaultEngineConfig,
|
||||
Secrets: defaultSecretConfig(),
|
||||
Machine: defaultMachineConfig(),
|
||||
Farms: defaultFarmConfig(),
|
||||
Podmansh: defaultPodmanshConfig(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -307,6 +308,18 @@ func defaultFarmConfig() FarmConfig {
|
||||
}
|
||||
}
|
||||
|
||||
// defaultPodmanshConfig returns the default podmansh configuration.
|
||||
func defaultPodmanshConfig() PodmanshConfig {
|
||||
return PodmanshConfig{
|
||||
Shell: "/bin/sh",
|
||||
Container: "podmansh",
|
||||
|
||||
// A value of 0 means "not set", needed to distinguish if engine.podmansh_timeout or podmansh.timeout should be used
|
||||
// This is needed to keep backwards compatibility to engine.PodmanshTimeout.
|
||||
Timeout: uint(0),
|
||||
}
|
||||
}
|
||||
|
||||
// defaultEngineConfig returns a default engine configuration. Note that the
|
||||
// config is different for root and rootless. It also parses the storage.conf.
|
||||
func defaultEngineConfig() (*EngineConfig, error) {
|
||||
@@ -360,7 +373,7 @@ func defaultEngineConfig() (*EngineConfig, error) {
|
||||
c.CgroupManager = defaultCgroupManager()
|
||||
c.ServiceTimeout = uint(5)
|
||||
c.StopTimeout = uint(10)
|
||||
c.PodmanshTimeout = uint(30)
|
||||
c.PodmanshTimeout = uint(30) // deprecated: use podmansh.timeout instead, kept for backwards-compatibility
|
||||
c.ExitCommandDelay = uint(5 * 60)
|
||||
c.Remote = isRemote()
|
||||
c.Retry = 3
|
||||
|
||||
Reference in New Issue
Block a user