mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/kube-vip/kube-vip.git
synced 2026-09-20 08:03:47 +08:00
chore: Fix some misspellings found by codespell
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
@@ -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?
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 != "" {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user