diff --git a/pkg/cloud/cloud.go b/pkg/cloud/cloud.go index a28780a993..87506a0d7b 100644 --- a/pkg/cloud/cloud.go +++ b/pkg/cloud/cloud.go @@ -127,7 +127,7 @@ type Cloud interface { DetachDisk(ctx context.Context, volumeID string, nodeID string) (err error) GetDiskByName(ctx context.Context, name string, capacityBytes int64) (disk *Disk, err error) GetDiskByID(ctx context.Context, volumeID string) (disk *Disk, err error) - IsExistInstance(ctx context.Context, nodeID string) (sucess bool) + IsExistInstance(ctx context.Context, nodeID string) (success bool) } type cloud struct { diff --git a/pkg/cloud/cloud_test.go b/pkg/cloud/cloud_test.go index f9179d80d1..93a8047cec 100644 --- a/pkg/cloud/cloud_test.go +++ b/pkg/cloud/cloud_test.go @@ -240,7 +240,7 @@ func TestAttachDisk(t *testing.T) { t.Fatal("AttachDisk() failed: expected error, got nothing") } if !strings.HasPrefix(devicePath, "/dev/") { - t.Fatal("AttachDisk() failed: expected valid device path, got emtpy string") + t.Fatal("AttachDisk() failed: expected valid device path, got empty string") } } diff --git a/pkg/cloud/devicemanager/allocator.go b/pkg/cloud/devicemanager/allocator.go index 09e23d843b..a126b02b90 100644 --- a/pkg/cloud/devicemanager/allocator.go +++ b/pkg/cloud/devicemanager/allocator.go @@ -45,7 +45,7 @@ type NameAllocator interface { GetNext(existingNames ExistingNames) (name string, err error) // Deprioritize the device name so as it can't be used immediately again - Deprioritize(choosen string) + Deprioritize(chosen string) } type nameAllocator struct {