Browse code

Fixed misspelling

Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>

Daehyeok Mun authored on 2016/11/29 03:44:45
Showing 8 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 // Package bitseq provides a structure and utilities for representing long bitmask
2
-// as sequence of run-lenght encoded blocks. It operates direclty on the encoded
2
+// as sequence of run-length encoded blocks. It operates directly on the encoded
3 3
 // representation, it does not decode/encode.
4 4
 package bitseq
5 5
 
... ...
@@ -305,7 +305,7 @@ func (c *controller) clusterAgentInit() {
305 305
 				c.clusterConfigAvailable = true
306 306
 				keys := c.keys
307 307
 				c.Unlock()
308
-				// agent initialization needs encyrption keys and bind/remote IP which
308
+				// agent initialization needs encryption keys and bind/remote IP which
309 309
 				// comes from the daemon cluster events
310 310
 				if len(keys) > 0 {
311 311
 					c.agentSetup()
... ...
@@ -779,7 +779,7 @@ func (c *controller) reservePools() {
779 779
 		}
780 780
 		for _, ep := range epl {
781 781
 			if err := ep.assignAddress(ipam, true, ep.Iface().AddressIPv6() != nil); err != nil {
782
-				logrus.Warnf("Failed to reserve current adress for endpoint %q (%s) on network %q (%s)",
782
+				logrus.Warnf("Failed to reserve current address for endpoint %q (%s) on network %q (%s)",
783 783
 					ep.Name(), ep.ID(), n.Name(), n.ID())
784 784
 			}
785 785
 		}
... ...
@@ -71,7 +71,7 @@ func (n *bridgeNetwork) setupIPTables(config *networkConfiguration, i *bridgeInt
71 71
 		return fmt.Errorf("Cannot program chains, EnableIPTable is disabled")
72 72
 	}
73 73
 
74
-	// Pickup this configuraton option from driver
74
+	// Pickup this configuration option from driver
75 75
 	hairpinMode := !driverConfig.EnableUserlandProxy
76 76
 
77 77
 	maskedAddrv4 := &net.IPNet{
... ...
@@ -99,7 +99,7 @@ func Init(dc driverapi.DriverCallback, config map[string]interface{}) error {
99 99
 	// outside of the restore path can potentially fix the network join and succeed.
100 100
 	for nid, n := range d.networks {
101 101
 		if n.initErr != nil {
102
-			logrus.Infof("resetting init error and once variable for network %s after unsuccesful endpoint restore: %v", nid, n.initErr)
102
+			logrus.Infof("resetting init error and once variable for network %s after unsuccessful endpoint restore: %v", nid, n.initErr)
103 103
 			n.initErr = nil
104 104
 			n.once = &sync.Once{}
105 105
 		}
... ...
@@ -993,7 +993,7 @@ func (c *networkConfiguration) Conflicts(o *networkConfiguration) error {
993 993
 		return fmt.Errorf("same configuration")
994 994
 	}
995 995
 
996
-	// Also empty, becasue only one network with empty name is allowed
996
+	// Also empty, because only one network with empty name is allowed
997 997
 	if c.BridgeName == o.BridgeName {
998 998
 		return fmt.Errorf("networks have same bridge name")
999 999
 	}
... ...
@@ -47,7 +47,7 @@ type Handle struct {
47 47
 
48 48
 // New provides a new ipvs handle in the namespace pointed to by the
49 49
 // passed path. It will return a valid handle or an error in case an
50
-// error occured while creating the handle.
50
+// error occurred while creating the handle.
51 51
 func New(path string) (*Handle, error) {
52 52
 	setup()
53 53
 
... ...
@@ -54,7 +54,7 @@ func (n *network) startResolver() {
54 54
 						logrus.Errorf("Resolver Setup/Start failed for container %s, %q", n.Name(), err)
55 55
 						time.Sleep(1 * time.Second)
56 56
 					} else {
57
-						logrus.Debugf("Resolver bound successfuly for network %s", n.Name())
57
+						logrus.Debugf("Resolver bound successfully for network %s", n.Name())
58 58
 						n.resolver = append(n.resolver, resolver)
59 59
 						break
60 60
 					}
... ...
@@ -244,7 +244,7 @@ func (nDB *NetworkDB) getEntry(tname, nid, key string) (*entry, error) {
244 244
 
245 245
 // CreateEntry creates a table entry in NetworkDB for given (network,
246 246
 // table, key) tuple and if the NetworkDB is part of the cluster
247
-// propogates this event to the cluster. It is an error to create an
247
+// propagates this event to the cluster. It is an error to create an
248 248
 // entry for the same tuple for which there is already an existing
249 249
 // entry unless the current entry is deleting state.
250 250
 func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error {
... ...
@@ -279,7 +279,7 @@ func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error {
279 279
 
280 280
 // UpdateEntry updates a table entry in NetworkDB for given (network,
281 281
 // table, key) tuple and if the NetworkDB is part of the cluster
282
-// propogates this event to the cluster. It is an error to update a
282
+// propagates this event to the cluster. It is an error to update a
283 283
 // non-existent entry.
284 284
 func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error {
285 285
 	if _, err := nDB.GetEntry(tname, nid, key); err != nil {
... ...
@@ -307,7 +307,7 @@ func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error {
307 307
 
308 308
 // DeleteEntry deletes a table entry in NetworkDB for given (network,
309 309
 // table, key) tuple and if the NetworkDB is part of the cluster
310
-// propogates this event to the cluster.
310
+// propagates this event to the cluster.
311 311
 func (nDB *NetworkDB) DeleteEntry(tname, nid, key string) error {
312 312
 	value, err := nDB.GetEntry(tname, nid, key)
313 313
 	if err != nil {
... ...
@@ -408,7 +408,7 @@ func (nDB *NetworkDB) WalkTable(tname string, fn func(string, string, []byte) bo
408 408
 	return nil
409 409
 }
410 410
 
411
-// JoinNetwork joins this node to a given network and propogates this
411
+// JoinNetwork joins this node to a given network and propagates this
412 412
 // event across the cluster. This triggers this node joining the
413 413
 // sub-cluster of this network and participates in the network-scoped
414 414
 // gossip and bulk sync for this network.
... ...
@@ -447,7 +447,7 @@ func (nDB *NetworkDB) JoinNetwork(nid string) error {
447 447
 	return nil
448 448
 }
449 449
 
450
-// LeaveNetwork leaves this node from a given network and propogates
450
+// LeaveNetwork leaves this node from a given network and propagates
451 451
 // this event across the cluster. This triggers this node leaving the
452 452
 // sub-cluster of this network and as a result will no longer
453 453
 // participate in the network-scoped gossip and bulk sync for this