You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/server/config/config.go
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,10 +99,16 @@ func (c *Config) GetVersion() int {
99
99
func (c*Config) ValidateV2() error {
100
100
version:=c.GetVersion()
101
101
ifversion<2 {
102
-
logrus.Warnf("containerd config version `%d` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, "+
103
-
"see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header", version)
102
+
logrus.Warnf("containerd config version `%d` has been deprecated and will be converted on each startup in containerd v2.0, "+
103
+
"use `containerd config migrate` after upgrading to containerd 2.0 to avoid conversion on startup", version)
104
104
returnnil
105
105
}
106
+
ifversion>2 {
107
+
logrus.Errorf("containerd config version `%d` is not supported, the max version is `2`, "+
108
+
"use `containerd config default` to generate a new config or manually revert to version `2`", version)
109
+
returnfmt.Errorf("unsupported config version `%d`", version)
0 commit comments