Skip to content

Commit 5988bfc

Browse files
committed
docs: Various typo found by codespell
Signed-off-by: Shengjing Zhu <[email protected]>
1 parent b4c6046 commit 5988bfc

21 files changed

Lines changed: 25 additions & 25 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ man: mandir $(addprefix man/,$(MANPAGES))
227227
mandir:
228228
@mkdir -p man
229229

230-
# Kept for backwards compatability
230+
# Kept for backwards compatibility
231231
genman: man/containerd.8 man/ctr.8
232232

233233
man/containerd.8: FORCE

container_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func TestRegressionIssue4769(t *testing.T) {
124124
select {
125125
case et := <-eventStream:
126126
if et.Event == nil {
127-
t.Fatal(errors.Errorf("unexpect empty event: %+v", et))
127+
t.Fatal(errors.Errorf("unexpected empty event: %+v", et))
128128
}
129129

130130
v, err := typeurl.UnmarshalAny(et.Event)
@@ -133,7 +133,7 @@ func TestRegressionIssue4769(t *testing.T) {
133133
}
134134

135135
if e, ok := v.(*apievents.TaskExit); !ok {
136-
t.Fatal(errors.Errorf("unexpect event type: %+v", v))
136+
t.Fatal(errors.Errorf("unexpected event type: %+v", v))
137137
} else if e.ExitStatus != 0 {
138138
t.Fatal(errors.Errorf("expect zero exit status, but got %v", e.ExitStatus))
139139
}

docs/man/containerd-config.toml.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ settings.
3434

3535
**imports**
3636
: Imports is a list of additional configuration files to include.
37-
This allows to split the main configuration file and keep some sections
37+
This allows one to split the main configuration file and keep some sections
3838
separately (for example vendors may keep a custom runtime configuration in a
3939
separate file without modifying the main `config.toml`).
4040
Imported files will overwrite simple fields like `int` or

docs/remote-snapshotter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This is a containerd-defined label which contains ChainID that targets a committ
8484
At this moment, user-defined labels (prefixed by `containerd.io/snapshot/`) will also be merged into the labels option.
8585

8686
```go
87-
// Gets annotations appended to the targetting layer which would contain
87+
// Gets annotations appended to the targeting layer which would contain
8888
// snapshotter-specific information passed by the user.
8989
labels := snapshots.FilterInheritedLabels(desc.Annotations)
9090
if labels == nil {
@@ -98,7 +98,7 @@ labels["containerd.io/snapshot.ref"] = chainID
9898
// snapshotter-specific information passed by the user.
9999
opts := append(rCtx.SnapshotterOpts, snapshots.WithLabels(labels))
100100

101-
// Calls `Prepare` API with target indentifier and snapshotter-specific
101+
// Calls `Prepare` API with target identifier and snapshotter-specific
102102
// information.
103103
mounts, err = sn.Prepare(ctx, key, parent.String(), opts...)
104104
```

images/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func Platforms(ctx context.Context, provider content.Provider, image ocispec.Des
289289
// If available is true, the caller can assume that required represents the
290290
// complete set of content required for the image.
291291
//
292-
// missing will have the components that are part of required but not avaiiable
292+
// missing will have the components that are part of required but not available
293293
// in the provider.
294294
//
295295
// If there is a problem resolving content, an error will be returned.

namespaces/ttrpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestCopyTTRPCMetadata(t *testing.T) {
4242

4343
func TestTTRPCNamespaceHeader(t *testing.T) {
4444
ctx := context.Background()
45-
namespace := "test-namepace"
45+
namespace := "test-namespace"
4646
ctx = withTTRPCNamespaceHeader(ctx, namespace)
4747

4848
header, ok := fromTTRPCHeader(ctx)

pkg/cri/opts/spec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func WithDevices(osi osinterface.OS, config *runtime.ContainerConfig) oci.SpecOp
329329
}
330330
}
331331

332-
// WithCapabilities sets the provided capabilties from the security context
332+
// WithCapabilities sets the provided capabilities from the security context
333333
func WithCapabilities(sc *runtime.LinuxContainerSecurityContext) oci.SpecOpts {
334334
capabilities := sc.GetCapabilities()
335335
if capabilities == nil {

pkg/cri/server/bandwidth/fake_shaper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
"k8s.io/apimachinery/pkg/api/resource"
3939
)
4040

41-
// FakeShaper provides an implementation of the bandwith.Shaper.
41+
// FakeShaper provides an implementation of the bandwidth.Shaper.
4242
// Beware this is implementation has no features besides Reset and GetCIDRs.
4343
type FakeShaper struct {
4444
CIDRs []string

pkg/cri/server/bandwidth/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func validateBandwidthIsReasonable(rsrc *resource.Quantity) error {
4646
return fmt.Errorf("resource is unreasonably small (< 1kbit)")
4747
}
4848
if rsrc.Value() > maxRsrc.Value() {
49-
return fmt.Errorf("resoruce is unreasonably large (> 1Pbit)")
49+
return fmt.Errorf("resource is unreasonably large (> 1Pbit)")
5050
}
5151
return nil
5252
}

pkg/cri/server/container_stats_list_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (c *criService) containerMetrics(
9292
}
9393
}
9494
default:
95-
return &cs, errors.Errorf("unxpected metrics type: %v", metrics)
95+
return &cs, errors.Errorf("unexpected metrics type: %v", metrics)
9696
}
9797
}
9898

0 commit comments

Comments
 (0)