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
MESOS: Add pod resource request support #17054
MESOS: Add pod resource request support #17054
Conversation
Labelling this PR as size/L |
9e1d979
to
c4ff9df
Compare
GCE e2e test build/test passed for commit c4ff9df921cc8075a70cb4a1cb45c277a8388933. |
c4ff9df
to
347811b
Compare
GCE e2e build/test failed for commit 347811bd0c5e989c930b78a12cd3178fc648d479. |
@k8s-bot test this please |
GCE e2e test build/test passed for commit 347811bd0c5e989c930b78a12cd3178fc648d479. |
func CPUForPod(pod *api.Pod, defaultLimit CPUShares) CPUShares { | ||
return PodCPULimit(pod) + CPUShares(unlimitedCountainerNum(pod, api.ResourceCPU))*defaultLimit | ||
// CPUForPod computes the limits from the spec plus the default CPU limit difference for unlimited containers | ||
func CPUForPod(pod *api.Pod, defaultLimit CPUShares) (request CPUShares, limit CPUShares, modified bool, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request, limit CPUShares
minor comments, otherwise looks good |
a13eb95
to
2576b1d
Compare
GCE e2e test build/test passed for commit a13eb9547b285482357ef5209ad100e8477c4ff8. |
2576b1d
to
063d5e1
Compare
GCE e2e test build/test passed for commit 2576b1d7ad1e8044bdc3c60eb8bc6cf1ab1b8b61. |
Continuous integration appears to have missed, closing and re-opening to trigger it |
@k8s-bot test this please |
03494b7
to
b1c66df
Compare
PR changed after LGTM, removing LGTM. |
GCE e2e test build/test passed for commit 03494b712897bc2f2a7e6bf735823703290f2b06. |
GCE e2e build/test failed for commit b1c66df54aae04a1bd150b44ec1419d80446eee9. |
b1c66df
to
a3f02cd
Compare
GCE e2e test build/test passed for commit a3f02cd. |
Continuous integration appears to have missed, closing and re-opening to trigger it |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit a3f02cd. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
…ources Auto commit by PR queue bot
…ources Auto commit by PR queue bot
…ources Auto commit by PR queue bot
…ources Auto commit by PR queue bot
LimitPodCPU
andLimitPodMem
, basically filling in default values or cutting off with minimal values if no valid request values are provided by the user.TODO: