Skip to content

Resource checks#116

Merged
idroz merged 6 commits intobravetools:masterfrom
Szubie:resource-checks
Aug 2, 2022
Merged

Resource checks#116
idroz merged 6 commits intobravetools:masterfrom
Szubie:resource-checks

Conversation

@Szubie
Copy link
Collaborator

@Szubie Szubie commented Jul 29, 2022

This is a step on the way to more consistent resource checking.

Changes:

  • Removed overly restrictive brave base space checking logic (5GB space minimum)
  • Added check to BuildImage for "public" images that ensures enough space is available before importing the image. Used during base and build commands.
  • Added a struct StorageUsage and utility function that takes the struct returns free space in bytes
  • Added the Backend field of the BraveHost during initialization to allow BuildImage to check the available space

Szubie added 6 commits July 15, 2022 15:34
…ticable amount of time to run with multipass backend.
…to download an image is quite high and is somewhat arbitrary. There is no similar resource check when building an image.
…StorageUsage struct. Add a function that checks whether a backend has enough disk space.
…rate function for reuse. Add a function mapping from alias to image.
…ge to check for sufficient disk space when downloading public LXD images.
@idroz idroz merged commit e450a92 into bravetools:master Aug 2, 2022
@Szubie Szubie deleted the resource-checks branch August 2, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants