Skip to content

Commit

Permalink
pkg,plugins,.codespellrc: add codespellrc, fix spelling.
Browse files Browse the repository at this point in the history
Add .codespellrc, fix reported existing spelling errors.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
  • Loading branch information
klihub committed Aug 27, 2024
1 parent e1d8260 commit a03dc93
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = .git,*.pdf,*.svg,go.sum,go.mod
ignore-words-list = clos
2 changes: 1 addition & 1 deletion pkg/adaptation/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ func (p *plugin) StateChange(ctx context.Context, evt *StateChangeEvent) error {
return nil
}

// isFatalError returns true if the error is fatal and the plugin connection shoudld be closed.
// isFatalError returns true if the error is fatal and the plugin connection should be closed.
func isFatalError(err error) bool {
switch {
case errors.Is(err, ttrpc.ErrClosed):
Expand Down
2 changes: 1 addition & 1 deletion pkg/adaptation/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
type Suite struct {
dir string // directory to create for test
runtime *mockRuntime // runtime instance for test
plugins []*mockPlugin // plugin intances for test
plugins []*mockPlugin // plugin instances for test
}

// SuiteOption can be applied to a suite.
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/api.pb.go

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

2 changes: 1 addition & 1 deletion pkg/api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ message UpdateContainersRequest {
}

message UpdateContainersResponse {
// Containers that the runtime failed to udpate.
// Containers that the runtime failed to update.
repeated ContainerUpdate failed = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/net/multiplex/mux_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ func sendAndReceive(lConn, pConn []net.Conn, msgCount int) {
return messages
}

// mesage receiver and collector
// message receiver and collector
read := func(conn net.Conn) []string {
var (
msg = make([]byte, maxMsg)
Expand Down Expand Up @@ -565,7 +565,7 @@ func sendAndReceive(lConn, pConn []net.Conn, msgCount int) {
wg.Add(2)
}

// trigger senders/recevers and wait for them to finish
// trigger senders/receivers and wait for them to finish
close(start)
wg.Wait()
}
2 changes: 1 addition & 1 deletion pkg/stub/stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

// Plugin can implement a number of interfaces related to Pod and Container
// lifecycle events. No any single such inteface is mandatory, therefore the
// lifecycle events. No any single such interface is mandatory, therefore the
// Plugin interface itself is empty. Plugins are required to implement at
// least one of these interfaces and this is verified during stub creation.
// Trying to create a stub for a plugin violating this requirement will fail
Expand Down
2 changes: 1 addition & 1 deletion plugins/network-device-injector/host-device.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func moveLinkIn(hostDev netlink.Link, containerNs ns.NetNS, ifName string) (netl
defer func() {
if err != nil {
_ = netlink.LinkSetNsFd(contDev, int(defaultNs.Fd()))
// we need to get updated link object as link was moved back to host namepsace
// we need to get updated link object as link was moved back to host namespace
_ = defaultNs.Do(func(_ ns.NetNS) error {
hostDev, _ = netlink.LinkByName(tempDevName)
return nil
Expand Down

0 comments on commit a03dc93

Please sign in to comment.