Update sandbox protobuf to match CRI

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-07-28 17:56:04 -07:00
parent 8823224174
commit aa3303b697
10 changed files with 426 additions and 208 deletions

View File

@@ -115,10 +115,16 @@ func (s *sandboxClient) Wait(ctx context.Context) (<-chan ExitStatus, error) {
}
func (s *sandboxClient) Stop(ctx context.Context) error {
return s.client.SandboxController().Shutdown(ctx, s.ID())
if _, err := s.client.SandboxController().Stop(ctx, s.ID()); err != nil {
return err
}
return nil
}
func (s *sandboxClient) Delete(ctx context.Context) error {
if _, err := s.client.SandboxController().Delete(ctx, s.ID()); err != nil {
return err
}
return s.client.SandboxStore().Delete(ctx, s.ID())
}