mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix typos in some error messages, comments
- cmd/kubeadm - RemoveContnainers -> RemoveContainers - iterface -> interface - stategicMergeSlice -> strategicMergeSlice
This commit is contained in:
parent
96dfa3f605
commit
d10e3da92d
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user