Commit 13504464 authored by qingsenLi's avatar qingsenLi

fix some spelling error

parent 51db0fe2
...@@ -116,10 +116,10 @@ func CreateStaticPodFiles(manifestDir string, cfg *kubeadmapi.ClusterConfigurati ...@@ -116,10 +116,10 @@ func CreateStaticPodFiles(manifestDir string, cfg *kubeadmapi.ClusterConfigurati
// creates required static pod specs // creates required static pod specs
for _, componentName := range componentNames { for _, componentName := range componentNames {
// retrives the StaticPodSpec for given component // retrieves the StaticPodSpec for given component
spec, exists := specs[componentName] spec, exists := specs[componentName]
if !exists { if !exists {
return errors.Errorf("couldn't retrive StaticPodSpec for %q", componentName) return errors.Errorf("couldn't retrieve StaticPodSpec for %q", componentName)
} }
// writes the StaticPodSpec to disk // writes the StaticPodSpec to disk
......
...@@ -106,10 +106,10 @@ func createKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration, kub ...@@ -106,10 +106,10 @@ func createKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration, kub
} }
for _, kubeConfigFileName := range kubeConfigFileNames { for _, kubeConfigFileName := range kubeConfigFileNames {
// retrives the KubeConfigSpec for given kubeConfigFileName // retrieves the KubeConfigSpec for given kubeConfigFileName
spec, exists := specs[kubeConfigFileName] spec, exists := specs[kubeConfigFileName]
if !exists { if !exists {
return errors.Errorf("couldn't retrive KubeConfigSpec for %s", kubeConfigFileName) return errors.Errorf("couldn't retrieve KubeConfigSpec for %s", kubeConfigFileName)
} }
// builds the KubeConfig object // builds the KubeConfig object
......
...@@ -105,7 +105,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR ...@@ -105,7 +105,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
return errors.Wrap(err, "failed to get node name from kubelet config") return errors.Wrap(err, "failed to get node name from kubelet config")
} }
// gets the corresponding node and retrives attributes stored there. // gets the corresponding node and retrieves attributes stored there.
node, err := client.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{}) node, err := client.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
if err != nil { if err != nil {
return errors.Wrap(err, "failed to get corresponding node") return errors.Wrap(err, "failed to get corresponding node")
......
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