-
Notifications
You must be signed in to change notification settings - Fork 303
🐛Remove the CEL validation on VSphereMachineTemplate.spec.network #3621
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
🐛Remove the CEL validation on VSphereMachineTemplate.spec.network #3621
Conversation
1d37f76
to
12cc9f2
Compare
When the Cluster API topology controller does a dry-run patch on the VSphereMachineTemplate to figure out if there are changes to apply, it fails with below error: server side apply dry-run failed for modified object: VSphereMachineTemplate.vmware.infrastructure.cluster.x-k8s.io "guestcluster1-rhhvs" is invalid: spec.template.spec: Invalid value: "object": field ''network'' cannot be added or removed after creation Move diff validation on VSphereMachineTemplate spec to Webhook and Skip validation if it 's triggerd by server side dry-run.
12cc9f2
to
417972b
Compare
/cherry-pick release-1.14 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
Co-authored-by: Stefan Büringer <[email protected]>
Thx! /lgtm |
LGTM label has been added. Git tree hash: c37e06da2f7f8292d5a249fd7441f5526f8ec3e2
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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 |
@sbueringer: new pull request created: #3624 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-sigs/prow repository. |
When the Cluster API topology controller does a dry-run patch on the VSphereMachineTemplate to figure out if there are changes to apply, it fails with below error:
server side apply dry-run failed for modified object: VSphereMachineTemplate.vmware.infrastructure.cluster.x-k8s.io "guestcluster1-rhhvs" is invalid: spec.template.spec: Invalid value: "object": field ''network'' cannot be added or removed after creation
Move diff validation on VSphereMachineTemplate spec to Webhook and Skip validation if it 's triggerd by server side dry-run.
Test modifying VSphereMachineTemplate:
What this PR does / why we need it:
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 #