Skip to content

Commit a03dc93

Browse files
committedAug 27, 2024
pkg,plugins,.codespellrc: add codespellrc, fix spelling.
Add .codespellrc, fix reported existing spelling errors. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
1 parent e1d8260 commit a03dc93

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed
 

‎.codespellrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg,go.sum,go.mod
3+
ignore-words-list = clos

‎pkg/adaptation/plugin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ func (p *plugin) StateChange(ctx context.Context, evt *StateChangeEvent) error {
516516
return nil
517517
}
518518

519-
// isFatalError returns true if the error is fatal and the plugin connection shoudld be closed.
519+
// isFatalError returns true if the error is fatal and the plugin connection should be closed.
520520
func isFatalError(err error) bool {
521521
switch {
522522
case errors.Is(err, ttrpc.ErrClosed):

‎pkg/adaptation/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const (
5050
type Suite struct {
5151
dir string // directory to create for test
5252
runtime *mockRuntime // runtime instance for test
53-
plugins []*mockPlugin // plugin intances for test
53+
plugins []*mockPlugin // plugin instances for test
5454
}
5555

5656
// SuiteOption can be applied to a suite.

‎pkg/api/api.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pkg/api/api.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ message UpdateContainersRequest {
4646
}
4747

4848
message UpdateContainersResponse {
49-
// Containers that the runtime failed to udpate.
49+
// Containers that the runtime failed to update.
5050
repeated ContainerUpdate failed = 1;
5151
}
5252

‎pkg/net/multiplex/mux_suite_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ func sendAndReceive(lConn, pConn []net.Conn, msgCount int) {
519519
return messages
520520
}
521521

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

568-
// trigger senders/recevers and wait for them to finish
568+
// trigger senders/receivers and wait for them to finish
569569
close(start)
570570
wg.Wait()
571571
}

‎pkg/stub/stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
)
3636

3737
// Plugin can implement a number of interfaces related to Pod and Container
38-
// lifecycle events. No any single such inteface is mandatory, therefore the
38+
// lifecycle events. No any single such interface is mandatory, therefore the
3939
// Plugin interface itself is empty. Plugins are required to implement at
4040
// least one of these interfaces and this is verified during stub creation.
4141
// Trying to create a stub for a plugin violating this requirement will fail

‎plugins/network-device-injector/host-device.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func moveLinkIn(hostDev netlink.Link, containerNs ns.NetNS, ifName string) (netl
9696
defer func() {
9797
if err != nil {
9898
_ = netlink.LinkSetNsFd(contDev, int(defaultNs.Fd()))
99-
// we need to get updated link object as link was moved back to host namepsace
99+
// we need to get updated link object as link was moved back to host namespace
100100
_ = defaultNs.Do(func(_ ns.NetNS) error {
101101
hostDev, _ = netlink.LinkByName(tempDevName)
102102
return nil

0 commit comments

Comments
 (0)
Please sign in to comment.