Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: fix misspells in code and comments #1429

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extra/libnetwork/bitseq/sequence.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package bitseq provides a structure and utilities for representing long bitmask
// as sequence of run-lenght encoded blocks. It operates direclty on the encoded
// as sequence of run-length encoded blocks. It operates directly on the encoded
// representation, it does not decode/encode.
package bitseq

Expand Down
4 changes: 2 additions & 2 deletions extra/libnetwork/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (c *controller) clusterAgentInit() {
c.clusterConfigAvailable = true
keys := c.keys
c.Unlock()
// agent initialization needs encyrption keys and bind/remote IP which
// agent initialization needs encryption keys and bind/remote IP which
// comes from the daemon cluster events
if len(keys) > 0 {
c.agentSetup()
Expand Down Expand Up @@ -784,7 +784,7 @@ func (c *controller) reservePools() {
}
for _, ep := range epl {
if err := ep.assignAddress(ipam, true, ep.Iface().AddressIPv6() != nil); err != nil {
log.Warnf("Failed to reserve current adress for endpoint %q (%s) on network %q (%s)",
log.Warnf("Failed to reserve current address for endpoint %q (%s) on network %q (%s)",
ep.Name(), ep.ID(), n.Name(), n.ID())
}
}
Expand Down
2 changes: 1 addition & 1 deletion extra/libnetwork/discoverapi/discoverapi.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package discoverapi

// Discover is an interface to be implemented by the componenet interested in receiving discover events
// Discover is an interface to be implemented by the components interested in receiving discover events
// like new node joining the cluster or datastore updates
type Discover interface {
// DiscoverNew is a notification for a new discovery event, Example:a new node joining a cluster
Expand Down
4 changes: 2 additions & 2 deletions extra/libnetwork/drivers/bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,8 @@ func (d *driver) createNetwork(config *networkConfiguration) error {
// Enable IPv6 Forwarding
{enableIPv6Forwarding, setupIPv6Forwarding},

// Setup Loopback Adresses Routing
{!d.config.EnableUserlandProxy, setupLoopbackAdressesRouting},
// Setup Loopback Addresses Routing
{!d.config.EnableUserlandProxy, setupLoopbackAddressesRouting},

// Setup IPTables.
{d.config.EnableIPTables, network.setupIPTables},
Expand Down
2 changes: 1 addition & 1 deletion extra/libnetwork/drivers/bridge/setup_ip_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (n *bridgeNetwork) setupIPTables(config *networkConfiguration, i *bridgeInt
return fmt.Errorf("Cannot program chains, EnableIPTable is disabled")
}

// Pickup this configuraton option from driver
// Pickup this configuration option from driver
hairpinMode := !driverConfig.EnableUserlandProxy

maskedAddrv4 := &net.IPNet{
Expand Down
4 changes: 2 additions & 2 deletions extra/libnetwork/drivers/bridge/setup_ipv4.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ func setupGatewayIPv4(config *networkConfiguration, i *bridgeInterface) error {
return nil
}

func setupLoopbackAdressesRouting(config *networkConfiguration, i *bridgeInterface) error {
func setupLoopbackAddressesRouting(config *networkConfiguration, i *bridgeInterface) error {
sysPath := filepath.Join("/proc/sys/net/ipv4/conf", config.BridgeName, "route_localnet")
ipv4LoRoutingData, err := ioutil.ReadFile(sysPath)
if err != nil {
return fmt.Errorf("Cannot read IPv4 local routing setup: %v", err)
}
// Enable loopback adresses routing only if it isn't already enabled
// Enable loopback addresses routing only if it isn't already enabled
if ipv4LoRoutingData[0] != '1' {
if err := ioutil.WriteFile(sysPath, []byte{'1', '\n'}, 0644); err != nil {
return fmt.Errorf("Unable to enable local routing for hairpin mode: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion extra/libnetwork/drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func Init(dc driverapi.DriverCallback, config map[string]interface{}) error {
// outside of the restore path can potentially fix the network join and succeed.
for nid, n := range d.networks {
if n.initErr != nil {
logrus.Infof("resetting init error and once variable for network %s after unsuccesful endpoint restore: %v", nid, n.initErr)
logrus.Infof("resetting init error and once variable for network %s after unsuccessful endpoint restore: %v", nid, n.initErr)
n.initErr = nil
n.once = &sync.Once{}
}
Expand Down
2 changes: 1 addition & 1 deletion extra/libnetwork/ipvs/ipvs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Handle struct {

// New provides a new ipvs handle in the namespace pointed to by the
// passed path. It will return a valid handle or an error in case an
// error occured while creating the handle.
// error occurred while creating the handle.
func New(path string) (*Handle, error) {
setup()

Expand Down
10 changes: 5 additions & 5 deletions extra/libnetwork/networkdb/networkdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (nDB *NetworkDB) getEntry(tname, nid, key string) (*entry, error) {

// CreateEntry creates a table entry in NetworkDB for given (network,
// table, key) tuple and if the NetworkDB is part of the cluster
// propogates this event to the cluster. It is an error to create an
// propagates this event to the cluster. It is an error to create an
// entry for the same tuple for which there is already an existing
// entry.
func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error {
Expand Down Expand Up @@ -250,7 +250,7 @@ func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error {

// UpdateEntry updates a table entry in NetworkDB for given (network,
// table, key) tuple and if the NetworkDB is part of the cluster
// propogates this event to the cluster. It is an error to update a
// propagates this event to the cluster. It is an error to update a
// non-existent entry.
func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error {
if _, err := nDB.GetEntry(tname, nid, key); err != nil {
Expand Down Expand Up @@ -278,7 +278,7 @@ func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error {

// DeleteEntry deletes a table entry in NetworkDB for given (network,
// table, key) tuple and if the NetworkDB is part of the cluster
// propogates this event to the cluster.
// propagates this event to the cluster.
func (nDB *NetworkDB) DeleteEntry(tname, nid, key string) error {
value, err := nDB.GetEntry(tname, nid, key)
if err != nil {
Expand Down Expand Up @@ -379,7 +379,7 @@ func (nDB *NetworkDB) WalkTable(tname string, fn func(string, string, []byte) bo
return nil
}

// JoinNetwork joins this node to a given network and propogates this
// JoinNetwork joins this node to a given network and propagates this
// event across the cluster. This triggers this node joining the
// sub-cluster of this network and participates in the network-scoped
// gossip and bulk sync for this network.
Expand Down Expand Up @@ -418,7 +418,7 @@ func (nDB *NetworkDB) JoinNetwork(nid string) error {
return nil
}

// LeaveNetwork leaves this node from a given network and propogates
// LeaveNetwork leaves this node from a given network and propagates
// this event across the cluster. This triggers this node leaving the
// sub-cluster of this network and as a result will no longer
// participate in the network-scoped gossip and bulk sync for this
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/containerd/containerd/process.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/prometheus/common/expfmt/decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.