From 06e41bae50b9ce86af50c2a75a3b4be0e69002b0 Mon Sep 17 00:00:00 2001 From: Mario Trangoni Date: Thu, 14 Sep 2023 11:09:01 +0200 Subject: [PATCH] chore: Fix some misspellings found by codespell Signed-off-by: Mario Trangoni --- README.md | 2 +- cmd/kube-vip.go | 2 +- pkg/cluster/cluster.go | 2 +- pkg/cluster/clusterLeaderElection.go | 2 +- pkg/equinixmetal/eip.go | 2 +- pkg/kubevip/config_environment.go | 2 +- pkg/kubevip/config_generator.go | 2 +- pkg/manager/services.go | 2 +- pkg/manager/watch_services.go | 2 +- testing/kubeadm/create.sh | 2 +- testing/kubeadm/create_ctr.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e80d016f..9aec8ed4 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Kube-Vip was originally created to provide a HA solution for the Kubernetes cont - Service LoadBalancer address pools per namespace or global - Service LoadBalancer address via (existing network DHCP) - Service LoadBalancer address exposure to gateway via UPNP -- ... manifest generation, vendor API integrations and many nore... +- ... manifest generation, vendor API integrations and many more... ## Why? diff --git a/cmd/kube-vip.go b/cmd/kube-vip.go index 1c2945bd..9de2b405 100644 --- a/cmd/kube-vip.go +++ b/cmd/kube-vip.go @@ -38,7 +38,7 @@ var disableVIP bool // ConfigMap name within a Kubernetes cluster var configMap string -// Configure the level of loggin +// Configure the level of logging var logLevel uint32 // Provider Config diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 574f77ef..a146184b 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -56,7 +56,7 @@ func startNetworking(c *kubevip.Config) (vip.Network, error) { // Stop - Will stop the Cluster and release VIP if needed func (cluster *Cluster) Stop() { - // Close the stop chanel, which will shut down the VIP (if needed) + // Close the stop channel, which will shut down the VIP (if needed) if cluster.stop != nil { cluster.once.Do(func() { // Ensure that the close channel can only ever be called once close(cluster.stop) diff --git a/pkg/cluster/clusterLeaderElection.go b/pkg/cluster/clusterLeaderElection.go index aaabbd0e..c4f44bff 100644 --- a/pkg/cluster/clusterLeaderElection.go +++ b/pkg/cluster/clusterLeaderElection.go @@ -126,7 +126,7 @@ func (cluster *Cluster) StartCluster(c *kubevip.Config, sm *Manager, bgpServer * // Cancel the arp context, which will in turn stop any broadcasts }() - // (attempt to) Remove the virtual IP, incase it already exists + // (attempt to) Remove the virtual IP, in case it already exists err = cluster.Network.DeleteIP() if err != nil { log.Errorf("could not delete virtualIP: %v", err) diff --git a/pkg/equinixmetal/eip.go b/pkg/equinixmetal/eip.go index dcbe808d..1db4666a 100644 --- a/pkg/equinixmetal/eip.go +++ b/pkg/equinixmetal/eip.go @@ -35,7 +35,7 @@ func AttachEIP(c *packngo.Client, k *kubevip.Config, _ string) error { // Find the device id for our EIP if ip.Address == vip { log.Infof("Found EIP ->%s ID -> %s\n", ip.Address, ip.ID) - // If attachements already exist then remove them + // If attachments already exist then remove them if len(ip.Assignments) != 0 { hrefID := path.Base(ip.Assignments[0].Href) _, err := c.DeviceIPs.Unassign(hrefID) diff --git a/pkg/kubevip/config_environment.go b/pkg/kubevip/config_environment.go index 6b7498e4..c8a9bcd8 100644 --- a/pkg/kubevip/config_environment.go +++ b/pkg/kubevip/config_environment.go @@ -220,7 +220,7 @@ func ParseEnvironment(c *Config) error { } // Find Start As Leader - // TODO - does this need depricating? + // TODO - does this need deprecating? // Required when the host sets itself as leader before the state change env = os.Getenv(vipStartLeader) if env != "" { diff --git a/pkg/kubevip/config_generator.go b/pkg/kubevip/config_generator.go index 16610c86..706cb53d 100644 --- a/pkg/kubevip/config_generator.go +++ b/pkg/kubevip/config_generator.go @@ -398,7 +398,7 @@ func generatePodSpec(c *Config, imageVersion string, inCluster bool) *corev1.Pod } if inCluster { - // If we're running this inCluster then the acccount name will be required + // If we're running this inCluster then the account name will be required newManifest.Spec.ServiceAccountName = "kube-vip" } else { // If this isn't inside a cluster then add the external path mount diff --git a/pkg/manager/services.go b/pkg/manager/services.go index 77a0dd3f..9a416d01 100644 --- a/pkg/manager/services.go +++ b/pkg/manager/services.go @@ -162,7 +162,7 @@ func (sm *Manager) addService(svc *v1.Service) error { } func (sm *Manager) deleteService(uid string) error { - // pretect multiple calls + // protect multiple calls sm.mutex.Lock() defer sm.mutex.Unlock() diff --git a/pkg/manager/watch_services.go b/pkg/manager/watch_services.go index 454a5b7a..0dbf4f4f 100644 --- a/pkg/manager/watch_services.go +++ b/pkg/manager/watch_services.go @@ -49,7 +49,7 @@ func (sm *Manager) servicesWatcher(ctx context.Context, serviceFunc func(context return err } if sm.config.ServiceNamespace == "" { - // v1.NamespaceAll is actually "", but we'll stay with the const incase things change upstream + // v1.NamespaceAll is actually "", but we'll stay with the const in case things change upstream sm.config.ServiceNamespace = v1.NamespaceAll log.Infof("starting services watcher for all namespaces") } else { diff --git a/testing/kubeadm/create.sh b/testing/kubeadm/create.sh index d1f31c30..6e346386 100755 --- a/testing/kubeadm/create.sh +++ b/testing/kubeadm/create.sh @@ -95,7 +95,7 @@ case "$3" in esac if [[ -z "$DEPS" ]]; then - logr "INFO" "Installing specific version of Kubernetes Dependancies" + logr "INFO" "Installing specific version of Kubernetes Dependencies" install_deps fi diff --git a/testing/kubeadm/create_ctr.sh b/testing/kubeadm/create_ctr.sh index aae51575..b366321a 100755 --- a/testing/kubeadm/create_ctr.sh +++ b/testing/kubeadm/create_ctr.sh @@ -97,7 +97,7 @@ case "$3" in esac if [[ -z "$DEPS" ]]; then - logr "INFO" "Installing specific version of Kubernetes Dependancies" + logr "INFO" "Installing specific version of Kubernetes Dependencies" install_deps fi