From 7946697e821cd0be51a4ef100d777efecbc6372f Mon Sep 17 00:00:00 2001 From: xichengliudui Date: Sun, 21 Oct 2018 09:50:54 -0400 Subject: [PATCH] Fix grammatical errors and repeat words --- cmd/kubeadm/app/cmd/phases/workflow/runner.go | 2 +- cmd/kubeadm/app/phases/kubelet/flags.go | 2 +- cmd/kubeadm/app/preflight/checks.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kubeadm/app/cmd/phases/workflow/runner.go b/cmd/kubeadm/app/cmd/phases/workflow/runner.go index 2f1051ee817..ee506e6b29e 100644 --- a/cmd/kubeadm/app/cmd/phases/workflow/runner.go +++ b/cmd/kubeadm/app/cmd/phases/workflow/runner.go @@ -84,7 +84,7 @@ type phaseRunner struct { selfPath []string // generatedName is the full name of the phase, that corresponds to the absolute - // path of the phase in the the workflow managed by the Runner. + // path of the phase in the workflow managed by the Runner. generatedName string // use is the phase usage string that will be printed in the workflow help. diff --git a/cmd/kubeadm/app/phases/kubelet/flags.go b/cmd/kubeadm/app/phases/kubelet/flags.go index 05ffc1ad7d5..d93e794d9ce 100644 --- a/cmd/kubeadm/app/phases/kubelet/flags.go +++ b/cmd/kubeadm/app/phases/kubelet/flags.go @@ -43,7 +43,7 @@ type kubeletFlagsOpts struct { defaultHostname string } -// WriteKubeletDynamicEnvFile writes a environment file with dynamic flags to the kubelet. +// WriteKubeletDynamicEnvFile writes an environment file with dynamic flags to the kubelet. // Used at "kubeadm init" and "kubeadm join" time. func WriteKubeletDynamicEnvFile(nodeRegOpts *kubeadmapi.NodeRegistrationOptions, featureGates map[string]bool, registerTaintsUsingFlags bool, kubeletDir string) error { hostName, err := nodeutil.GetHostname("") diff --git a/cmd/kubeadm/app/preflight/checks.go b/cmd/kubeadm/app/preflight/checks.go index 30edb559e42..c72d09b29d1 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -1007,7 +1007,7 @@ func RunRootCheckOnly(ignorePreflightErrors sets.String) error { return RunChecks(checks, os.Stderr, ignorePreflightErrors) } -// RunPullImagesCheck will pull images kubeadm needs if the are not found on the system +// RunPullImagesCheck will pull images kubeadm needs if they are not found on the system func RunPullImagesCheck(execer utilsexec.Interface, cfg *kubeadmapi.InitConfiguration, ignorePreflightErrors sets.String) error { containerRuntime, err := utilruntime.NewContainerRuntime(utilsexec.New(), cfg.GetCRISocket()) if err != nil {