-
Notifications
You must be signed in to change notification settings - Fork 31
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
How to do units.NumberMultiplier * float
operator?
#30
Comments
@LeoLiuYan Therefore, If you really want to support resource assignment as a string type, you can directly extend the definition of
Where, the type of |
OK. But this is a common operation when set the value of |
Got it. We'll consider an easier way to deal with |
However, we can convert the numeric unit literal value into an integer through the |
|
In addition, it is not complete to only support the operation of numerical unit types and integers. For addition, 1Mi + 1Ki is ambiguous, and the calculation result unit is uncertain. |
General Question
When users want to use 2048Mi memory, for example, and we set
resources.memroy.limits = 2048Mi
, but setresources.memroy.requests = 2048Mi * (a float ratio).
@Peefy @chai2010
The text was updated successfully, but these errors were encountered: