Skip to content

Commit 7cdd26e

Browse files
authored
Merge pull request kubernetes#76071 from qingsenLi/k8s190403
fix some spelling error
2 parents 6289256 + 1350446 commit 7cdd26e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/kubeadm/app/phases/controlplane/manifests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ func CreateStaticPodFiles(manifestDir string, cfg *kubeadmapi.ClusterConfigurati
117117

118118
// creates required static pod specs
119119
for _, componentName := range componentNames {
120-
// retrives the StaticPodSpec for given component
120+
// retrieves the StaticPodSpec for given component
121121
spec, exists := specs[componentName]
122122
if !exists {
123-
return errors.Errorf("couldn't retrive StaticPodSpec for %q", componentName)
123+
return errors.Errorf("couldn't retrieve StaticPodSpec for %q", componentName)
124124
}
125125

126126
// writes the StaticPodSpec to disk

cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ func createKubeConfigFiles(outDir string, cfg *kubeadmapi.InitConfiguration, kub
106106
}
107107

108108
for _, kubeConfigFileName := range kubeConfigFileNames {
109-
// retrives the KubeConfigSpec for given kubeConfigFileName
109+
// retrieves the KubeConfigSpec for given kubeConfigFileName
110110
spec, exists := specs[kubeConfigFileName]
111111
if !exists {
112-
return errors.Errorf("couldn't retrive KubeConfigSpec for %s", kubeConfigFileName)
112+
return errors.Errorf("couldn't retrieve KubeConfigSpec for %s", kubeConfigFileName)
113113
}
114114

115115
// builds the KubeConfig object

cmd/kubeadm/app/util/config/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
105105
return errors.Wrap(err, "failed to get node name from kubelet config")
106106
}
107107

108-
// gets the corresponding node and retrives attributes stored there.
108+
// gets the corresponding node and retrieves attributes stored there.
109109
node, err := client.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
110110
if err != nil {
111111
return errors.Wrap(err, "failed to get corresponding node")

0 commit comments

Comments
 (0)