-
Notifications
You must be signed in to change notification settings - Fork 927
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 calculation issue for extension resource in volcano. #162
Fix calculation issue for extension resource in volcano. #162
Conversation
/hold It's better to make |
@k82cn I agree, but for your suggestion, it's the matter of kube-batch's, we don't need to convert it into kube-batch type and then convert it back here. |
we should not duplicate the code; we maintain both repo. |
Which are duplicated? |
please help to rename Convert2K8sResource to ToResourceList and make sure them align. |
They are different logics, one for the kube batch resource and the other for kubernetes resource. And within this update method |
|
ha, removed unused codes in order to eliminate issue, see pr |
/lgtm |
…_issue Fix calculation issue for extension resource in volcano.
Use original ResourceList sum up logic to avoid resource amplify issue.
The code above should not be used outside of kube-batch, since when converting back, the resource would be amplified with 1000 times. see here