-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
flavors: Raise conflict if CPU or Memory resource requests are present when using flavors #7981
flavors: Raise conflict if CPU or Memory resource requests are present when using flavors #7981
Conversation
be18d76
to
a83b09f
Compare
/recheck |
/retest |
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.
Overall this looks good.
a83b09f
to
053dd5b
Compare
/lgtm |
We shouldn't allow users to provide resource requests for vCPUs when using a flavor that also defines vCPUs. Reject the request with a conflict if this is the case. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
053dd5b
to
369c005
Compare
As with CPU resource requests we should also raise a conflict if memory resource requests are present. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
369c005
to
ea60465
Compare
/retest |
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidvossel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required |
2 similar comments
/retest-required |
/retest-required |
@lyarwood: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest-required |
What this PR does / why we need it:
Previously a user could request both the use of a flavor that defines a guest visible amount of CPU/Memory and separate resource requests for CPU and memory within the associated
VirtualMachine
.This obviously isn't desirable as there is no guarantee these requests could work together. For now a conflict should be raised. In the future flavors should be extended to support both methods of defining resources, allowing us to ensure that the requests are viable before application to the
VirtualMachineInstance
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: