-
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
Revert "Add checks of dedicatedCPUPlacement to validation webhook" #9169
Revert "Add checks of dedicatedCPUPlacement to validation webhook" #9169
Conversation
This reverts commit 48a2ade. Thanks to e7898af [1][2] we now apply defaults to a copy of the VirtualMachineInstanceSpec before running the associated validations in the VirtualMachine validation webhook. This actually resolves the original issue with enabling dedicatedCPUPlacement from instance types [3] as it ensures any guest visible memory is expressed as resources requests before we attempt to validate. As such we can drop the blocking validations from the instance type webhooks and allow `dedicatedCPUPlacement` to be set once again. [1] kubevirt#9103 [2] kubevirt#9102 [3] kubevirt#8867 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
WIP until kubevirt/kubevirt#9169 lands allowing functest to pass again. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
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.
/lgtm
/retest |
/cherry-pick release-0.59 |
@lyarwood: once the present PR merges, I will cherry-pick it on top of release-0.59 in a new PR and assign it to you. In response to this:
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. |
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.
in general this makes sense. Can we get some test coverage of dedicated cpu placement with instance types now? That feature is complex enough that I'd like to ensure it is both working and continues to work as expected with instance types moving forward
Following on from the revert of 48a2ade this change introduces a simple functional test to assert that an instance type providing dedicatedCPUPlacement is accepted *and* the use of said instance type results in a valid VirtualMachine and running VirtualMachineInstance. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
ACK added in the commit below, thanks @davidvossel ! |
/retest-required
Looks like that is passing in the compute lanes FWIW. |
@lyarwood: The following test 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. |
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.
/lgtm
/retest-required |
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
[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 |
1 similar comment
/retest-required |
@lyarwood: new pull request created: #9234 In response to this:
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. |
/area instancetype
/cc @opokornyy
/cc @davidvossel
What this PR does / why we need it:
This reverts commit 48a2ade.
Thanks to e7898af [1][2] we now apply defaults to a copy of the VirtualMachineInstanceSpec before running the associated validations in the VirtualMachine validation webhook. This actually resolves the original issue with enabling dedicatedCPUPlacement from instance types [3] as it ensures any guest visible memory is expressed as resources requests before we attempt to validate.
As such we can drop the blocking validations from the instance type webhooks and allow
dedicatedCPUPlacement
to be set once again.[1] #9103
[2] #9102
[3] #8867
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:
With this commit reverted in a test environment the following examples work once again:
Release note: