From 1350446417aeb10caf913c457013679f44ebdae6 Mon Sep 17 00:00:00 2001
From: qingsenLi
Date: Thu, 4 Apr 2019 00:07:19 +0800
Subject: [PATCH] fix some spelling error
---
cmd/kubeadm/app/phases/controlplane/manifests.go | 4 ++--
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go | 4 ++--
cmd/kubeadm/app/util/config/cluster.go | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cmd/kubeadm/app/phases/controlplane/manifests.go b/cmd/kubeadm/app/phases/controlplane/manifests.go
index 47c1e0355e..3ae4b89c29 100644
--- a/cmd/kubeadm/app/phases/controlplane/manifests.go
+++ b/cmd/kubeadm/app/phases/controlplane/manifests.go
@@ -116,10 +116,10 @@ func CreateStaticPodFiles(manifestDir string, cfg *kubeadmapi.ClusterConfigurati
// creates required static pod specs
for _, componentName := range componentNames {
- // retrives the StaticPodSpec for given component
+ // retrieves the StaticPodSpec for given component
spec, exists := specs[componentName]
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
diff --git a/cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go b/cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
index 3931b2ea05..485178d581 100644
--- a/cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
+++ b/cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
@@ -106,10 +106,10 @@ func createKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration, kub
}
for _, kubeConfigFileName := range kubeConfigFileNames {
- // retrives the KubeConfigSpec for given kubeConfigFileName
+ // retrieves the KubeConfigSpec for given kubeConfigFileName
spec, exists := specs[kubeConfigFileName]
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
diff --git a/cmd/kubeadm/app/util/config/cluster.go b/cmd/kubeadm/app/util/config/cluster.go
index f78f512a17..840a40869e 100644
--- a/cmd/kubeadm/app/util/config/cluster.go
+++ b/cmd/kubeadm/app/util/config/cluster.go
@@ -105,7 +105,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
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{})
if err != nil {
return errors.Wrap(err, "failed to get corresponding node")