diff --git a/cmd/kubeadm/app/phases/certs/renewal/readwriter.go b/cmd/kubeadm/app/phases/certs/renewal/readwriter.go index 0ec0ee6ef3d..7cfb406d048 100644 --- a/cmd/kubeadm/app/phases/certs/renewal/readwriter.go +++ b/cmd/kubeadm/app/phases/certs/renewal/readwriter.go @@ -175,7 +175,7 @@ func (rw *kubeConfigReadWriter) Read() (*x509.Certificate, error) { return nil, errors.Errorf("kubeConfig file %s does not have an embedded client certificate", rw.kubeConfigFilePath) } - // parse the client certificate, retrive the cert config and then renew it + // parse the client certificate, retrieve the cert config and then renew it certs, err := certutil.ParseCertsPEM(authInfo.ClientCertificateData) if err != nil { return nil, errors.Wrapf(err, "kubeConfig file %s does not contain a valid client certificate", rw.kubeConfigFilePath) diff --git a/cmd/kubeadm/app/phases/upgrade/health.go b/cmd/kubeadm/app/phases/upgrade/health.go index 751e236a8e8..55acdf865a6 100644 --- a/cmd/kubeadm/app/phases/upgrade/health.go +++ b/cmd/kubeadm/app/phases/upgrade/health.go @@ -172,7 +172,7 @@ func createJob(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration) return errors.Wrapf(lastError, "could not create Job %q in the namespace %q", jobName, ns) } - // Waiting and manually deleteing the Job is a workaround to not enabling the TTL controller. + // Waiting and manually deleting the Job is a workaround to not enabling the TTL controller. // TODO: refactor this if the TTL controller is enabled in kubeadm once it goes Beta. // Wait for the Job to complete diff --git a/test/integration/apiserver/apply/scale_test.go b/test/integration/apiserver/apply/scale_test.go index 834af8741d1..e00d56d5c76 100644 --- a/test/integration/apiserver/apply/scale_test.go +++ b/test/integration/apiserver/apply/scale_test.go @@ -398,7 +398,7 @@ func assertReplicasValue(t *testing.T, obj *unstructured.Unstructured, value int actualValue, found, err := unstructured.NestedInt64(obj.Object, "spec", "replicas") if err != nil { - t.Fatalf("Error when retriving replicas field: %v", err) + t.Fatalf("Error when retrieving replicas field: %v", err) } if !found { t.Fatalf("Replicas field not found")