all: fix typos in code comments

Signed-off-by: Pablo Garcia Caceres <pablogarciacaceres5@gmail.com>
This commit is contained in:
Pablo Garcia Caceres committed 2026-09-01 16:54:55 +02:00
1 parent 3ee1777312
commit 93b0eea04b
12 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ const (
// schemaVersion represents the schema version of
// the database. This schema version represents the
// structure of the data in the database. The schema
// can envolve at any time but any backwards
// can evolve at any time but any backwards
// incompatible changes or structural changes require
// bumping the schema version.
schemaVersion = "v1"
+1 -1
View File
@@ -1039,7 +1039,7 @@ func (c *gcContext) remove(ctx context.Context, tx *bolt.Tx, node gc.Node) (any,
nsbkt := v1bkt.Bucket([]byte(node.Namespace))
if nsbkt == nil {
// Still remove object if refenced outside the db
// Still remove object if referenced outside the db
if cc, ok := c.contexts[node.Type]; ok {
cc.Remove(node)
}
+1 -1
View File
@@ -147,7 +147,7 @@ func (h *errOnceHandler) Unmount(_ context.Context, mp string) error {
return nil
}
// TestGC tests the garbage collecion features of the mount manager,
// TestGC tests the garbage collection features of the mount manager,
// ensuring that mounts are properly cleaned up when no longer needed.
func TestGC(t *testing.T) {
type gcrun struct {
+1 -1
View File
@@ -14,7 +14,7 @@
limitations under the License.
*/
// Package cleanup provides utilies to help cleanup.
// Package cleanup provides utilities to help cleanup.
package cleanup
import (
+1 -1
View File
@@ -37,7 +37,7 @@ import (
// ioStream is a stream created by streaming api for io transfer
// we add a field c as io.Closer because we do connect the streaming server
// and create a client everytime we create a stream. so we need to close
// and create a client every time we create a stream. so we need to close
// the connection if the stream is closed.
type ioStream struct {
streamingapi.Stream
@@ -63,7 +63,7 @@ func addVolatileOptionOnImageVolumeMount(mounts []mount.Mount) []mount.Mount {
// ensureImageVolumeMounted ensures target volume is mounted.
//
// NOTE: Currently, kubelet creates containers in pod sequencially. It won't
// NOTE: Currently, kubelet creates containers in pod sequentially. It won't
// cause multiple mountpoints on same target path.
func ensureImageVolumeMounted(target string) (bool, error) {
_, err := os.Stat(target)
+2 -2
View File
@@ -40,7 +40,7 @@ import (
"github.com/containerd/log"
)
// TODO: Move common helpers for sbserver and podsandbox to a dedicated package once basic services are functinal.
// TODO: Move common helpers for sbserver and podsandbox to a dedicated package once basic services are functional.
const (
// errorStartReason is the exit reason when fails to start container.
@@ -265,7 +265,7 @@ func unknownContainerStatus() containerstore.Status {
}
}
// copyResourcesToStatus copys container resource contraints from spec to
// copyResourcesToStatus copies container resource constraints from spec to
// container status.
// This will need updates when new fields are added to ContainerResources.
func copyResourcesToStatus(spec *runtimespec.Spec, status containerstore.Status) containerstore.Status {
+2 -2
View File
@@ -205,7 +205,7 @@ func appendCPUPodStats(podRuntimeStats *runtime.WindowsContainerStats, container
}
// It is possible the pod sandbox might not be populated with values if it doesn't exist
// HostProcess pods are an example where there is no actual pod sandbox running and therefor no stats
// HostProcess pods are an example where there is no actual pod sandbox running and therefore no stats
if podRuntimeStats.Cpu == nil {
podRuntimeStats.Cpu = &runtime.WindowsCpuUsage{
Timestamp: timestamp.UnixNano(),
@@ -227,7 +227,7 @@ func appendMemoryPodStats(podRuntimeStats *runtime.WindowsContainerStats, contai
}
// It is possible the pod sandbox might not be populated with values if it doesn't exist
// HostProcess pods are an example where there is no actual pod sandbox running and therefor no stats
// HostProcess pods are an example where there is no actual pod sandbox running and therefore no stats
if podRuntimeStats.Memory == nil {
podRuntimeStats.Memory = &runtime.WindowsMemoryUsage{Timestamp: timestamp.UnixNano()}
}
+1 -1
View File
@@ -14,7 +14,7 @@
limitations under the License.
*/
// Package randutil provides utilities for [cyrpto/rand].
// Package randutil provides utilities for [crypto/rand].
package randutil
import (
+1 -1
View File
@@ -173,7 +173,7 @@ func loadOCISpec(filename string) (*oci.Spec, error) {
}
// Set glog level.
// TODO: mikebrow remove this klog inititialization func once we are no longer vendoring k8s.io/klog
// TODO: mikebrow remove this klog initialization func once we are no longer vendoring k8s.io/klog
func setGLogLevel() error {
l := log.GetLevel()
fs := flag.NewFlagSet("klog", flag.PanicOnError)
+1 -1
View File
@@ -36,7 +36,7 @@ import (
var emptyResponse typeurl.Any
func init() {
// save marshalled empty response to avoid marshaling everytime
// save marshalled empty response to avoid marshaling every time
var err error
emptyResponse, err = typeurl.MarshalAny(&ptypes.Empty{})
if err != nil {
+1 -1
View File
@@ -35,7 +35,7 @@ import (
)
// windowsBaseSnapshotter is a type that implements common functionality required by both windows & cimfs
// snapshotters (sort of a base type that windows & cimfs snapshotter types derive from - however, windowsBaseSnapshotter does NOT impelement the full Snapshotter interface). Some functions
// snapshotters (sort of a base type that windows & cimfs snapshotter types derive from - however, windowsBaseSnapshotter does NOT implement the full Snapshotter interface). Some functions
// (like Stat, Update) that are identical for both snapshotters are directly implemented in this base
// snapshotter and such functions handle database transaction creation etc. However, the functions that are
// not common don't create a transaction to allow the caller the flexibility of deciding whether to commit or