Merge pull request #88429 from taesunny/master

Fix: cmd/kubeadm Typos in some error messages, comments
This commit is contained in:
Kubernetes Prow Robot 2020-02-23 11:14:47 -08:00 committed by GitHub
commit b513f359a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -80,13 +80,13 @@ func newStrategicMergeSliceFromBytes(in []byte) (strategicMergeSlice, error) {
return err
}
// Get the stategicMergeSlice for the item
// Get the strategicMergeSlice for the item
itemU, err := newStrategicMergeSliceFromBytes(itemJSON)
if err != nil {
return err
}
// append the stategicMergeSlice for the item to the stategicMergeSlice
// append the strategicMergeSlice for the item to the strategicMergeSlice
result = append(result, itemU...)
return nil

View File

@ -30,7 +30,7 @@ import (
// TextOutput describes the plain text output
const TextOutput = "text"
// TextPrintFlags is an iterface to handle custom text output
// TextPrintFlags is an interface to handle custom text output
type TextPrintFlags interface {
ToPrinter(outputFormat string) (Printer, error)
}

View File

@ -219,7 +219,7 @@ func TestRemoveContainers(t *testing.T) {
t.Errorf("unexpected RemoveContainers errors: %v, criSocket: %s, containers: %v", err, tc.criSocket, tc.containers)
}
if tc.isError && err == nil {
t.Errorf("unexpected RemoveContnainers success, criSocket: %s, containers: %v", tc.criSocket, tc.containers)
t.Errorf("unexpected RemoveContainers success, criSocket: %s, containers: %v", tc.criSocket, tc.containers)
}
})
}