1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-28 03:31:24 +00:00

update misspelled common words

This commit is contained in:
Guangbo Chen 2017-12-09 19:53:38 +08:00
parent ead2709100
commit 1cc26ee373
8 changed files with 8 additions and 8 deletions

View File

@ -94,7 +94,7 @@ func saveClusterCerts(kubeClient *kubernetes.Clientset, crts map[string]pki.Cert
return fmt.Errorf("Failed to save certificate [%s] to kubernetes: %v", crtName, err)
}
}
logrus.Infof("[certificates] Successfuly saved certificates as kubernetes secret [%s]", pki.CertificatesSecretName)
logrus.Infof("[certificates] Successfully saved certificates as kubernetes secret [%s]", pki.CertificatesSecretName)
return nil
}

View File

@ -51,7 +51,7 @@ func (c *Cluster) GetClusterState() (*Cluster, error) {
logrus.Warnf("Failed to initiate new Kubernetes Client: %v", err)
return nil, nil
}
// Get pervious kubernetes state
// Get previous kubernetes state
currentCluster = getStateFromKubernetes(c.KubeClient, c.LocalKubeConfigPath)
// Get previous kubernetes certificates
if currentCluster != nil {

View File

@ -17,7 +17,7 @@ import (
)
const (
comments = `# If you intened to deploy Kubernetes in an air-gapped envrionment,
comments = `# If you intened to deploy Kubernetes in an air-gapped environment,
# please consult the documentation on how to configure custom RKE images.`
)

View File

@ -111,7 +111,7 @@ func DoRemoveContainer(dClient *client.Client, containerName, hostname string) e
if err != nil {
return err
}
logrus.Infof("[remove/%s] Sucessfully removed container on host [%s]", containerName, hostname)
logrus.Infof("[remove/%s] Successfully removed container on host [%s]", containerName, hostname)
return nil
}

View File

@ -64,7 +64,7 @@ func TestKubeletConfig(t *testing.T) {
assertEqual(t, true, hostCfg.PidMode.IsHost(),
"Failed to verify that Kubelet has host PID mode")
assertEqual(t, true, hostCfg.NetworkMode.IsHost(),
"Failed to verify that Kubelet has host Netowrk mode")
"Failed to verify that Kubelet has host Network mode")
assertEqual(t, isStringInSlice(TestKubeletEtcdNodeLabel, imageCfg.Cmd), true,
fmt.Sprintf("Failed to find [%s] in Kubelet Command", TestKubeletEtcdNodeLabel))
assertEqual(t, isStringInSlice(TestKubeletCPNodeLabel, imageCfg.Cmd), true,

View File

@ -30,5 +30,5 @@ func TestKubeproxyConfig(t *testing.T) {
assertEqual(t, true, hostCfg.Privileged,
"Failed to verify that KubeProxy is privileged")
assertEqual(t, true, hostCfg.NetworkMode.IsHost(),
"Failed to verify that KubeProxy has host Netowrk mode")
"Failed to verify that KubeProxy has host Network mode")
}

View File

@ -45,5 +45,5 @@ func TestNginxProxyConfig(t *testing.T) {
assertEqual(t, TestNginxProxyImage, imageCfg.Image,
fmt.Sprintf("Failed to verify [%s] as Nginx Proxy Image", TestNginxProxyImage))
assertEqual(t, true, hostCfg.NetworkMode.IsHost(),
"Failed to verify that Nginx Proxy has host Netowrk mode")
"Failed to verify that Nginx Proxy has host Network mode")
}

View File

@ -28,5 +28,5 @@ func TestSchedulerConfig(t *testing.T) {
assertEqual(t, isStringInSlice(TestSchedulerExtraArgs, imageCfg.Entrypoint), true,
fmt.Sprintf("Failed to find [%s] in Scheduler extra args", TestSchedulerExtraArgs))
assertEqual(t, true, hostCfg.NetworkMode.IsHost(),
"Failed to verify that Scheduler has host Netowrk mode")
"Failed to verify that Scheduler has host Network mode")
}