Skip to content

Commit 03f5c94

Browse files
authored
Merge pull request #1455 from NVIDIA/backport-1454-to-release-1.18
[release-1.18] [no-relnote] Fix typos in comments
2 parents f37f845 + 08378a4 commit 03f5c94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/config/engine/containerd/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (c *Config) getStringArrayValue(path []string) ([]string, error) {
108108
return annotations, nil
109109
}
110110

111-
// DefaultRuntime returns the default runtime for the cri-o config
111+
// DefaultRuntime returns the default runtime for the containerd config.
112112
func (c Config) DefaultRuntime() string {
113113
if runtime, ok := c.GetPath([]string{"plugins", c.CRIRuntimePluginName, "containerd", "default_runtime_name"}).(string); ok {
114114
return runtime
@@ -123,7 +123,7 @@ func (c *Config) EnableCDI() {
123123
*c.Tree = config
124124
}
125125

126-
// RemoveRuntime removes a runtime from the docker config
126+
// RemoveRuntime removes a runtime from the containerd config.
127127
func (c *Config) RemoveRuntime(name string) error {
128128
if c == nil || c.Tree == nil {
129129
return nil

pkg/config/engine/containerd/config_v1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ func (c *ConfigV1) AddRuntimeWithOptions(name string, path string, setAsDefault
6767
return nil
6868
}
6969

70-
// DefaultRuntime returns the default runtime for the cri-o config
70+
// DefaultRuntime returns the default runtime for the containerd config.
7171
func (c ConfigV1) DefaultRuntime() string {
7272
if runtime, ok := c.GetPath([]string{"plugins", "cri", "containerd", "default_runtime_name"}).(string); ok {
7373
return runtime
7474
}
7575
return ""
7676
}
7777

78-
// RemoveRuntime removes a runtime from the docker config
78+
// RemoveRuntime removes a runtime from the containerd config.
7979
func (c *ConfigV1) RemoveRuntime(name string) error {
8080
if c == nil || c.Tree == nil {
8181
return nil

0 commit comments

Comments
 (0)