Fix containerd config dump.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -28,6 +28,8 @@ import (
|
||||
"github.com/containerd/containerd/plugin"
|
||||
)
|
||||
|
||||
// NOTE: Any new map fields added also need to be handled in mergeConfig.
|
||||
|
||||
// Config provides containerd configuration data for the server
|
||||
type Config struct {
|
||||
// Version of the config file
|
||||
@@ -321,6 +323,10 @@ func mergeConfig(to, from *Config) error {
|
||||
to.ProxyPlugins[k] = v
|
||||
}
|
||||
|
||||
for k, v := range from.Timeouts {
|
||||
to.Timeouts[k] = v
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user