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

handling memory normalization when only bytes are passed #273

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omer-do
Copy link

@omer-do omer-do commented Jan 23, 2025

the if condition doesn't handle the case when the memory string is comprised only of digits (which is number of bytes). to handle this, the initial value of valuePart and unitPart is set to this case, if there are letters in the string, the matching values will be set accordingly.

initially got error:
Error: kubernetes: failed to populate column 'containers_resources_requests_std': invalid memory value: 1288490189 (SQLSTATE HV000)

And now, followed the guidelines to test it locally, and it worked for me :)

…mprised only of digits (which is number of bytes). to handle this, the initial value of valuePart and unitPart is set to this case, if there are letters in the string, the matching values will be set accordingly.
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.

1 participant