diff --git a/cmd/kubeadm/app/phases/kubelet/flags.go b/cmd/kubeadm/app/phases/kubelet/flags.go index 473c200420c..d9f9d2eb8f6 100644 --- a/cmd/kubeadm/app/phases/kubelet/flags.go +++ b/cmd/kubeadm/app/phases/kubelet/flags.go @@ -50,7 +50,7 @@ type kubeletFlagsOpts struct { // (from lower to higher): // - actual hostname // - NodeRegistrationOptions.Name (same as "--node-name" passed to "kubeadm init/join") -// - "hostname-overide" flag in NodeRegistrationOptions.KubeletExtraArgs +// - "hostname-override" flag in NodeRegistrationOptions.KubeletExtraArgs // It also returns the hostname or an error if getting the hostname failed. func GetNodeNameAndHostname(cfg *kubeadmapi.NodeRegistrationOptions) (string, string, error) { hostname, err := kubeadmutil.GetHostname("") diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/get/get_test.go b/staging/src/k8s.io/kubectl/pkg/cmd/get/get_test.go index 41b29555768..a550bdfe47b 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/get/get_test.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/get/get_test.go @@ -168,7 +168,7 @@ func TestGetObjectsWithOpenAPIOutputFormatPresent(t *testing.T) { defer tf.Cleanup() codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...) - // overide the openAPISchema function to return custom output + // override the openAPISchema function to return custom output // for Pod type. tf.OpenAPISchemaFunc = testOpenAPISchemaData tf.UnstructuredClient = &fake.RESTClient{