Merge pull request #8129 from Burning1020/with-opt

sandbox: start sandbox with options
This commit is contained in:
Kazuyoshi Kato 2023-02-20 16:48:25 -08:00 committed by GitHub
commit e9c1ab33ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,8 @@ func (s *controllerService) Register(server *grpc.Server) error {
func (s *controllerService) Create(ctx context.Context, req *api.ControllerCreateRequest) (*api.ControllerCreateResponse, error) {
log.G(ctx).WithField("req", req).Debug("create sandbox")
// TODO: Rootfs, any
err := s.local.Create(ctx, req.GetSandboxID())
// TODO: Rootfs
err := s.local.Create(ctx, req.GetSandboxID(), sandbox.WithOptions(req.GetOptions()))
if err != nil {
return &api.ControllerCreateResponse{}, errdefs.ToGRPC(err)
}