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

CORE-1144: added support for incoming CPU, memory and storage requests. #7

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

slr71
Copy link
Member

@slr71 slr71 commented Oct 21, 2020

No description provided.

Copy link
Member

@ianmcorvidae ianmcorvidae left a comment

Choose a reason for hiding this comment

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

Looks pretty straightforward to me. I guess the only potential change would be if we wanted to have these resource calculations split out into their own functions like the limits are, just for consistency.

I'm fine either way, though.

@slr71
Copy link
Member Author

slr71 commented Oct 21, 2020

Thanks for the review!

I don't quite understand the suggestion. As far as I could tell, the code that I added pretty closely matched the code to calculate the limit. These functions extracted the limit requests from the incoming job submission: https://github.com/cyverse-de/app-exposer/blob/master/internal/deployments.go#L112-L124. This code built the limit object to use when creating the deployment: https://github.com/cyverse-de/app-exposer/blob/master/internal/deployments.go#L212-L227. Am I missing something?

@ianmcorvidae
Copy link
Member

... yeah, my brain apparently transposed some code while reading it. Disregard me, heh.

@cyverse-org
Copy link

cyverse-org commented Oct 21, 2020 via email

@slr71
Copy link
Member Author

slr71 commented Oct 21, 2020

Thanks again for the review! The check failures aren't in the code that was modified, so I'm going to merge this now.

@slr71 slr71 merged commit 8ac0239 into cyverse-de:master Oct 21, 2020
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.

3 participants