Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/config/engine/containerd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/engine/containerd/config_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ 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
}
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
Expand Down