diff --git a/cmd/kubeadm/app/util/kustomize/strategicmerge.go b/cmd/kubeadm/app/util/kustomize/strategicmerge.go index c220b502725..ca6c8e629e4 100644 --- a/cmd/kubeadm/app/util/kustomize/strategicmerge.go +++ b/cmd/kubeadm/app/util/kustomize/strategicmerge.go @@ -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 diff --git a/cmd/kubeadm/app/util/output/output.go b/cmd/kubeadm/app/util/output/output.go index bb7692b29d1..fdaf8afc22d 100644 --- a/cmd/kubeadm/app/util/output/output.go +++ b/cmd/kubeadm/app/util/output/output.go @@ -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) } diff --git a/cmd/kubeadm/app/util/runtime/runtime_test.go b/cmd/kubeadm/app/util/runtime/runtime_test.go index 4352d9fdf78..ea116450563 100644 --- a/cmd/kubeadm/app/util/runtime/runtime_test.go +++ b/cmd/kubeadm/app/util/runtime/runtime_test.go @@ -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) } }) }