@@ -63,13 +63,6 @@ type ContainerdConfig struct {
6363 Snapshotter string `toml:"snapshotter" json:"snapshotter"`
6464 // DefaultRuntimeName is the default runtime name to use from the runtimes table.
6565 DefaultRuntimeName string `toml:"default_runtime_name" json:"defaultRuntimeName"`
66- // DefaultRuntime is the default runtime to use in containerd.
67- // This runtime is used when no runtime handler (or the empty string) is provided.
68- // DEPRECATED: use DefaultRuntimeName instead. Remove in containerd 1.4.
69- DefaultRuntime Runtime `toml:"default_runtime" json:"defaultRuntime"`
70- // UntrustedWorkloadRuntime is a runtime to run untrusted workloads on it.
71- // DEPRECATED: use `untrusted` runtime in Runtimes instead. Remove in containerd 1.4.
72- UntrustedWorkloadRuntime Runtime `toml:"untrusted_workload_runtime" json:"untrustedWorkloadRuntime"`
7366 // Runtimes is a map from CRI RuntimeHandler strings, which specify types of runtime
7467 // configurations, to the matching configurations.
7568 Runtimes map [string ]Runtime `toml:"runtimes" json:"runtimes"`
@@ -306,22 +299,6 @@ func ValidatePluginConfig(ctx context.Context, c *PluginConfig) error {
306299 c .ContainerdConfig .Runtimes = make (map [string ]Runtime )
307300 }
308301
309- // Validation for deprecated untrusted_workload_runtime.
310- if c .ContainerdConfig .UntrustedWorkloadRuntime .Type != "" {
311- log .G (ctx ).Warning ("`untrusted_workload_runtime` is deprecated, please use `untrusted` runtime in `runtimes` instead" )
312- if _ , ok := c .ContainerdConfig .Runtimes [RuntimeUntrusted ]; ok {
313- return errors .Errorf ("conflicting definitions: configuration includes both `untrusted_workload_runtime` and `runtimes[%q]`" , RuntimeUntrusted )
314- }
315- c .ContainerdConfig .Runtimes [RuntimeUntrusted ] = c .ContainerdConfig .UntrustedWorkloadRuntime
316- }
317-
318- // Validation for deprecated default_runtime field.
319- if c .ContainerdConfig .DefaultRuntime .Type != "" {
320- log .G (ctx ).Warning ("`default_runtime` is deprecated, please use `default_runtime_name` to reference the default configuration you have defined in `runtimes`" )
321- c .ContainerdConfig .DefaultRuntimeName = RuntimeDefault
322- c .ContainerdConfig .Runtimes [RuntimeDefault ] = c .ContainerdConfig .DefaultRuntime
323- }
324-
325302 // Validation for default_runtime_name
326303 if c .ContainerdConfig .DefaultRuntimeName == "" {
327304 return errors .New ("`default_runtime_name` is empty" )
0 commit comments