diff --git a/pkg/cri/config/config.go b/pkg/cri/config/config.go index 775d4796f..8f1867127 100644 --- a/pkg/cri/config/config.go +++ b/pkg/cri/config/config.go @@ -28,7 +28,7 @@ import ( ) // Runtime struct to contain the type(ID), engine, and root variables for a default runtime -// and a runtime for untrusted worload. +// and a runtime for untrusted workload. type Runtime struct { // Type is the runtime type to use in containerd e.g. io.containerd.runtime.v1.linux Type string `toml:"runtime_type" json:"runtimeType"` diff --git a/pkg/cri/server/restart.go b/pkg/cri/server/restart.go index 55a725e49..f484fdc26 100644 --- a/pkg/cri/server/restart.go +++ b/pkg/cri/server/restart.go @@ -311,7 +311,7 @@ func (c *criService) loadContainer(ctx context.Context, cntr containerd.Containe c.eventMonitor.startContainerExitMonitor(context.Background(), id, status.Pid, exitCh) } case containerd.Stopped: - // Task is stopped. Updata status and delete the task. + // Task is stopped. Update status and delete the task. if _, err := t.Delete(ctx, containerd.WithProcessKill); err != nil && !errdefs.IsNotFound(err) { return fmt.Errorf("failed to delete task: %w", err) } diff --git a/services/introspection/introspection.go b/services/introspection/introspection.go index 8b25cd597..7f88af4f9 100644 --- a/services/introspection/introspection.go +++ b/services/introspection/introspection.go @@ -25,7 +25,7 @@ import ( ptypes "github.com/containerd/containerd/protobuf/types" ) -// Service defines the instrospection service interface +// Service defines the introspection service interface type Service interface { Plugins(context.Context, []string) (*api.PluginsResponse, error) Server(context.Context, *ptypes.Empty) (*api.ServerResponse, error)