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

fix: set correct minimum memory values in package.json #246

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

lstocchi
Copy link
Contributor

The values that are within the package.json are the ones that are used by podman desktop to generate the range of the sliders. Because the max value is in bytes, we also have to use bytes for the minimum.
However CRC expects bits values. So the minimum memory value accepted by CRC for microshift is 4096 MiB converted to bytes 4294967296.
Same calculation has been made for the rest.

This is somehow part of #243 bc with the current values you could set an invalid memory amount. The minimum was 4000000000 bytes that converted to Mib are 3814, which is less than the minimum accepted 4096

@lstocchi lstocchi requested review from jeffmaury and dgolovin July 31, 2024 12:26
Copy link
Collaborator

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

@lstocchi lstocchi merged commit e3937e3 into crc-org:main Jul 31, 2024
3 checks passed
@lstocchi lstocchi deleted the i243 branch July 31, 2024 12:35
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