🐛 Enforce rollout strategy/type consistency and warn on disabled topology MHC overrides#13368
🐛 Enforce rollout strategy/type consistency and warn on disabled topology MHC overrides#13368miltalex wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
|
This PR is currently missing an area label, which is used to identify the modified component when generating release notes. Area labels can be added by org members by writing Please see the labels list for possible areas. DetailsInstructions 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. |
|
Hi @miltalex. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
I don't think we should allow invalid configuration just because it's convenient in cases like this |
Sharing the context from the slack conversation: Keeping MHC fields while disabling MHC is already possible today (before this PR). Before / current behavior: PR is introducing: |
…HC overrides Signed-off-by: Miltiadis Alexis <alexmiltiadis@gmail.com>
e101fd7 to
dae300e
Compare
|
/ok-to-test |
What this PR does / why we need it:
Adds missing rollout strategy validation parity for
MachineDeployment,Cluster.spec.topology, andClusterClass(reject rollingUpdate fields when strategy type isOnDelete), with ratcheting so unchanged pre-existing invalid values are still allowed on update. It also changes disabled topology MHC override handling to emit webhook warnings (not errors) so users can temporarily disable MHC for troubleshooting without removing config.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 #8721