Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
353 changes: 353 additions & 0 deletions cmd/containerd-shim-lcow-v2/service/mocks/mock_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions cmd/containerd-shim-lcow-v2/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ type Service struct {
// For LCOW shim, sandboxID corresponds 1-1 with the UtilityVM managed by the shim.
sandboxID string

// vmController is responsible for managing the lifecycle of the underlying utility VM and its associated resources.
vmController *vm.Controller
// vmController is responsible for managing the lifecycle of the underlying
// utility VM. Tests substitute a mock; production passes [*vm.Controller].
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Please remove this statement Tests substitute a mock; production passes [*vm.Controller].

vmController vmController

// podControllers maps podID -> PodController for each active pod.
podControllers map[string]*pod.Controller
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we create similar interface for pod.Controller too?

Expand Down
Loading
Loading