OCPBUGS-90521: fix(nodepool): don't explicitly set the MinReadySeconds default - #8783
OCPBUGS-90521: fix(nodepool): don't explicitly set the MinReadySeconds default#8783sdminonne wants to merge 1 commit into
Conversation
The upgrade test on release-4.22 has been 100% broken since PR openshift#8594 (CAPI 1.11 upgrade) merged to main. The pre-upgrade operator image (hypershift/hypershift-operator:latest, built from main) no longer sets MinReadySeconds on MachineDeployments, but the post-upgrade release-4.22 operator unconditionally sets it to *int32(0). This causes a spec change (nil -> 0) on every MachineDeployment during reconciliation, bumping the generation and failing the upgrade invariant check. Remove the explicit MinReadySeconds defaulting from both MachineDeployment and MachineSet reconciliation, matching what openshift#8594 already did on main. The CAPI controller applies its own defaults, making the explicit setting unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@sdminonne: This pull request references Jira Issue OCPBUGS-90521, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/cc @jparrill |
|
/uncc @cblecker |
|
@sdminonne: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-4.22 #8783 +/- ##
================================================
- Coverage 35.45% 35.44% -0.01%
================================================
Files 767 767
Lines 93724 93718 -6
================================================
- Hits 33226 33220 -6
Misses 57785 57785
Partials 2713 2713
🚀 New features to boost your workflow:
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jparrill, sdminonne The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/pipeline-required |
|
/hold |
|
@sdminonne: This pull request references Jira Issue OCPBUGS-90521. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
Summary
MinReadySecondsdefaulting from MachineDeployment and MachineSet reconciliation, matching what PR CNTRLPLANE-2207: Upgrade to CAPI 1.11 #8594 (CAPI 1.11 upgrade) already did onmain.Problem
The
e2e-aws-upgrade-hypershift-operatortest onrelease-4.22has been 100% broken for all PRs since PR #8594 merged tomainon June 3.The upgrade test installs the pre-upgrade operator from
hypershift/hypershift-operator:latest(built frommain), which after #8594 no longer setsMinReadySecondson MachineDeployments. It then upgrades to therelease-4.22operator, which unconditionally setsMinReadySeconds = *int32(0). This causes a spec change (nil→*int32(0)) on every MachineDeployment, bumping.metadata.generationfrom 1 to 2, and failing the upgrade invariant check:Fix
Remove the explicit
MinReadySecondsdefaulting from bothreconcileMachineDeployment()andreconcileMachineSet()incapi.go. The CAPI controller applies its own defaults, making the explicit setting unnecessary — as recognized by the removal in #8594 onmain.Test plan
e2e-aws-upgrade-hypershift-operatorshould pass onrelease-4.22go test ./hypershift-operator/controllers/nodepool/...)References
🤖 Generated with Claude Code