diff --git a/pkg/volume/csi/csi_plugin.go b/pkg/volume/csi/csi_plugin.go index 8698c542e78..4c73484f02b 100644 --- a/pkg/volume/csi/csi_plugin.go +++ b/pkg/volume/csi/csi_plugin.go @@ -765,7 +765,7 @@ func (p *csiPlugin) ConstructBlockVolumeSpec(podUID types.UID, specVolName, mapP } // skipAttach looks up CSIDriver object associated with driver name -// to determine if driver requies attachment volume operation +// to determine if driver requires attachment volume operation func (p *csiPlugin) skipAttach(driver string) (bool, error) { if !utilfeature.DefaultFeatureGate.Enabled(features.CSIDriverRegistry) { return false, nil diff --git a/pkg/volume/csi/csi_plugin_test.go b/pkg/volume/csi/csi_plugin_test.go index 6d4354973b6..0ec0a2410bc 100644 --- a/pkg/volume/csi/csi_plugin_test.go +++ b/pkg/volume/csi/csi_plugin_test.go @@ -366,7 +366,7 @@ func TestPluginConstructVolumeSpec(t *testing.T) { t.Fatal(err) } if spec == nil { - t.Fatal("nil volume.Spec contstructed") + t.Fatal("nil volume.Spec constructed") } // inspect spec @@ -474,7 +474,7 @@ func TestPluginConstructVolumeSpecWithInline(t *testing.T) { t.Fatal(err) } if spec == nil { - t.Fatal("nil volume.Spec contstructed") + t.Fatal("nil volume.Spec constructed") } if spec.Name() != tc.specVolID { diff --git a/pkg/volume/plugins.go b/pkg/volume/plugins.go index 8b9fce20e9a..9e3ef7500cc 100644 --- a/pkg/volume/plugins.go +++ b/pkg/volume/plugins.go @@ -842,7 +842,7 @@ func (pm *VolumePluginMgr) FindProvisionablePluginByName(name string) (Provision return nil, fmt.Errorf("no provisionable volume plugin matched") } -// FindDeletablePluginBySppec fetches a persistent volume plugin by spec. If +// FindDeletablePluginBySpec fetches a persistent volume plugin by spec. If // no plugin is found, returns error. func (pm *VolumePluginMgr) FindDeletablePluginBySpec(spec *Spec) (DeletableVolumePlugin, error) { volumePlugin, err := pm.FindPluginBySpec(spec)