diff --git a/pkg/config/engine/containerd/config.go b/pkg/config/engine/containerd/config.go index 86cc08ab9..b77e36fbf 100644 --- a/pkg/config/engine/containerd/config.go +++ b/pkg/config/engine/containerd/config.go @@ -108,7 +108,7 @@ func (c *Config) getStringArrayValue(path []string) ([]string, error) { return annotations, nil } -// DefaultRuntime returns the default runtime for the cri-o config +// DefaultRuntime returns the default runtime for the containerd config. func (c Config) DefaultRuntime() string { if runtime, ok := c.GetPath([]string{"plugins", c.CRIRuntimePluginName, "containerd", "default_runtime_name"}).(string); ok { return runtime @@ -123,7 +123,7 @@ func (c *Config) EnableCDI() { *c.Tree = config } -// RemoveRuntime removes a runtime from the docker config +// RemoveRuntime removes a runtime from the containerd config. func (c *Config) RemoveRuntime(name string) error { if c == nil || c.Tree == nil { return nil diff --git a/pkg/config/engine/containerd/config_v1.go b/pkg/config/engine/containerd/config_v1.go index 14b68ed92..def36bc00 100644 --- a/pkg/config/engine/containerd/config_v1.go +++ b/pkg/config/engine/containerd/config_v1.go @@ -67,7 +67,7 @@ func (c *ConfigV1) AddRuntimeWithOptions(name string, path string, setAsDefault return nil } -// DefaultRuntime returns the default runtime for the cri-o config +// DefaultRuntime returns the default runtime for the containerd config. func (c ConfigV1) DefaultRuntime() string { if runtime, ok := c.GetPath([]string{"plugins", "cri", "containerd", "default_runtime_name"}).(string); ok { return runtime @@ -75,7 +75,7 @@ func (c ConfigV1) DefaultRuntime() string { return "" } -// RemoveRuntime removes a runtime from the docker config +// RemoveRuntime removes a runtime from the containerd config. func (c *ConfigV1) RemoveRuntime(name string) error { if c == nil || c.Tree == nil { return nil