diff --git a/cluster/certificates.go b/cluster/certificates.go index 8113da65..c5fe407c 100644 --- a/cluster/certificates.go +++ b/cluster/certificates.go @@ -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 } diff --git a/cluster/state.go b/cluster/state.go index c9b4f0c4..f6e5ae39 100644 --- a/cluster/state.go +++ b/cluster/state.go @@ -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 { diff --git a/cmd/config.go b/cmd/config.go index 0604a4e8..65f7bd83 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -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.` ) diff --git a/docker/docker.go b/docker/docker.go index 6d7071a1..f3f06e2c 100644 --- a/docker/docker.go +++ b/docker/docker.go @@ -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 } diff --git a/services/kubelet_test.go b/services/kubelet_test.go index 544d63e7..ccc12f7a 100644 --- a/services/kubelet_test.go +++ b/services/kubelet_test.go @@ -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, diff --git a/services/kubeproxy_test.go b/services/kubeproxy_test.go index 6605c6a5..cd66341d 100644 --- a/services/kubeproxy_test.go +++ b/services/kubeproxy_test.go @@ -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") } diff --git a/services/proxy_test.go b/services/proxy_test.go index 1e152233..0930105c 100644 --- a/services/proxy_test.go +++ b/services/proxy_test.go @@ -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") } diff --git a/services/scheduler_test.go b/services/scheduler_test.go index cdf45efc..e69f9108 100644 --- a/services/scheduler_test.go +++ b/services/scheduler_test.go @@ -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") }