fix: Version mismatch code fix#5448
Conversation
…on constraint Previously, when the node pool channel group differed from the control plane channel group, the code had a critical flaw: - If node pool channel was "stable", it would return an empty version string - The user's explicit channel group setting was ignored - This caused downstream validation errors and test failures This fix ensures: - Node pool version is always resolved from its specified channel (including stable) - Version constraint is enforced: nodePoolVersion <= controlPlaneVersion - If node pool version exceeds control plane, it is clamped with a clear warning - User's channel group configuration is respected - Graceful error handling for unparseable versions Example scenario that now works correctly: Control Plane: candidate channel → 4.21.0 Node Pool: stable channel → 4.20.5 Result: Uses 4.20.5 from stable (previously returned empty string) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: brucebarrera 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 |
|
Hi @brucebarrera. Thanks for your PR. I'm waiting for a Azure member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. 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. |
Jira
Fixes: ARO-26767
Why
Previously, when the node pool channel group differed from the control plane channel group, the code had a critical flaw:
This PR fixes an issue where after a release rollout, the default node pool version (4.20.20) is higher than the control plane version (4.20.19) in STG and PROD.
Error: Node pool version '4.20.20' must not be greater than Control Plane version '4.20.19'
Failing Tests:
What
This fix ensures:
Testing