Skip to content

Commit

Permalink
config: improve config v1 deprecation message
Browse files Browse the repository at this point in the history
The previous wording was causing confusion.
Fix moby/moby issue 43628

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 739cb4c)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed May 24, 2022
1 parent 51f20c0 commit 4c98768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ func (c *Config) GetVersion() int {
func (c *Config) ValidateV2() error {
version := c.GetVersion()
if version < 2 {
logrus.Warnf("deprecated version : `%d`, please switch to version `2`", version)
logrus.Warnf("containerd config version `%d` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, "+
"see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header", version)
return nil
}
for _, p := range c.DisabledPlugins {
Expand Down

0 comments on commit 4c98768

Please sign in to comment.