mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
fix some typo
Change-Id: I211f572555e964581214a5d726ac552676c9833a
This commit is contained in:
parent
6eca8cc472
commit
2005110090
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user