Unverified Commit 584a8673 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #70071 from xichengliudui/fix18102203

Fix grammatical errors and repeat words
parents 63e9ecab 7946697e
...@@ -84,7 +84,7 @@ type phaseRunner struct { ...@@ -84,7 +84,7 @@ type phaseRunner struct {
selfPath []string selfPath []string
// generatedName is the full name of the phase, that corresponds to the absolute // 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 generatedName string
// use is the phase usage string that will be printed in the workflow help. // use is the phase usage string that will be printed in the workflow help.
......
...@@ -43,7 +43,7 @@ type kubeletFlagsOpts struct { ...@@ -43,7 +43,7 @@ type kubeletFlagsOpts struct {
defaultHostname string 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. // Used at "kubeadm init" and "kubeadm join" time.
func WriteKubeletDynamicEnvFile(nodeRegOpts *kubeadmapi.NodeRegistrationOptions, featureGates map[string]bool, registerTaintsUsingFlags bool, kubeletDir string) error { func WriteKubeletDynamicEnvFile(nodeRegOpts *kubeadmapi.NodeRegistrationOptions, featureGates map[string]bool, registerTaintsUsingFlags bool, kubeletDir string) error {
hostName, err := nodeutil.GetHostname("") hostName, err := nodeutil.GetHostname("")
......
...@@ -1027,7 +1027,7 @@ func RunRootCheckOnly(ignorePreflightErrors sets.String) error { ...@@ -1027,7 +1027,7 @@ func RunRootCheckOnly(ignorePreflightErrors sets.String) error {
return RunChecks(checks, os.Stderr, ignorePreflightErrors) 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 { func RunPullImagesCheck(execer utilsexec.Interface, cfg *kubeadmapi.InitConfiguration, ignorePreflightErrors sets.String) error {
containerRuntime, err := utilruntime.NewContainerRuntime(utilsexec.New(), cfg.GetCRISocket()) containerRuntime, err := utilruntime.NewContainerRuntime(utilsexec.New(), cfg.GetCRISocket())
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment