Add sandbox store helpers

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-07-28 10:06:15 -07:00
parent 7b55b23a82
commit e47c433d57
3 changed files with 90 additions and 4 deletions

View File

@@ -369,9 +369,5 @@ func (s *sandboxStore) validate(new *api.Sandbox) error {
return fmt.Errorf("updated date must not be zero: %w", errdefs.ErrInvalidArgument)
}
if new.Runtime.Name == "" {
return fmt.Errorf("sandbox.Runtime.Name must be set: %w", errdefs.ErrInvalidArgument)
}
return nil
}