diff --git a/pkg/server/restart.go b/pkg/server/restart.go index c842a5cac..b45fe31a6 100644 --- a/pkg/server/restart.go +++ b/pkg/server/restart.go @@ -146,7 +146,7 @@ func (c *criService) recover(ctx context.Context) error { // * ListContainerStats: Not in critical code path, a default timeout will // be applied at CRI level. // * Recovery logic: We should set a time for each container/sandbox recovery. -// * Event montior: We should set a timeout for each container/sandbox event handling. +// * Event monitor: We should set a timeout for each container/sandbox event handling. const loadContainerTimeout = 10 * time.Second // loadContainer loads container from containerd and status checkpoint. diff --git a/pkg/server/sandbox_stop.go b/pkg/server/sandbox_stop.go index 31a16c047..09789b235 100644 --- a/pkg/server/sandbox_stop.go +++ b/pkg/server/sandbox_stop.go @@ -128,7 +128,7 @@ func (c *criService) waitSandboxStop(ctx context.Context, sandbox sandboxstore.S // teardownPod removes the network from the pod func (c *criService) teardownPod(id string, path string, config *runtime.PodSandboxConfig) error { if c.netPlugin == nil { - return errors.New("cni config not intialized") + return errors.New("cni config not initialized") } labels := getPodCNILabels(id, config)