Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(internal): Allow for specifying optional measurement units #1687

Merged

Conversation

craciunoiuc
Copy link
Member

@craciunoiuc craciunoiuc commented May 31, 2024

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

The value is then converted to mebibytes by deviding the integer by 1024*1024. If something like ~3.2Mi are specified, the value will be truncated down to 3Mi.

GitHub-Closes: #1513

@craciunoiuc craciunoiuc requested a review from nderjung May 31, 2024 15:25
@craciunoiuc
Copy link
Member Author

craciunoiuc commented Jun 3, 2024

If this looks ok I can do it also for volumes

Edit: Done

@craciunoiuc craciunoiuc force-pushed the craciunoiuc/allow-units-memory branch 2 times, most recently from 1e608a1 to 8de3a7d Compare June 4, 2024 13:56
The value is then converted to mebibytes by dividing
the integer by 1024*1024. If something like ~3.2Mi
are specified, the value will be truncated down to 3Mi.

Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
@craciunoiuc craciunoiuc force-pushed the craciunoiuc/allow-units-memory branch from 8de3a7d to 725bdcd Compare June 4, 2024 14:04
@craciunoiuc craciunoiuc added this to the KraftKit v0.9.0 milestone Jun 19, 2024
Copy link
Member

@nderjung nderjung left a comment

Choose a reason for hiding this comment

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

Thanks!

@nderjung nderjung merged commit 66f124e into unikraft:staging Jul 1, 2024
12 checks passed
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.

kraft cloud deploy: Memory parameter fails parsing size suffixes, like M, G, ...
2 participants