fix some typo

Change-Id: I211f572555e964581214a5d726ac552676c9833a
This commit is contained in:
Abirdcfly 2022-03-05 13:47:03 +08:00
parent 6eca8cc472
commit 2005110090
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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")