OCPBUGS-74931: fix(hcco): gate image registry workaround to pre-4.20 releases - #7634
Conversation
|
@bryan-cox: This pull request references Jira Issue OCPBUGS-74931, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (yli2@redhat.com), skipping review request. 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 limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
Skipping CI for Draft Pull Request. |
|
/test verify |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox 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 |
|
/test all |
|
/retest |
|
/auto-cc |
|
@bryan-cox: This pull request references Jira Issue OCPBUGS-74931, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (yli2@redhat.com), skipping review request. 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. |
b658c66 to
0227244
Compare
|
/test verify |
Remove the OCM config update logic that disabled the serviceaccount-pull-secrets controller when image registry managementState was Removed. This logic caused constant updates to the openshift-controller-manager-config ConfigMap, triggering unnecessary OCM pod restarts every minute. CPOv2 manages this ConfigMap in 4.20+, so HCCO should not modify it. Changes: - Remove OCM config update logic from image registry reconciliation - Extract image registry reconciliation into dedicated function for testability - Add unit tests for image registry reconciliation scenarios - Update TestReconcileOcmConfigChange to verify OCM config is unchanged Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0227244 to
66776b9
Compare
|
/test verify |
|
/lgtm |
|
Scheduling required tests: Scheduling tests matching the |
|
/retest |
|
/verified later @YuLi517 |
|
@bryan-cox: This PR has been marked to be verified later by 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. |
|
@bryan-cox: The following test failed, say
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. |
|
/retest |
|
/jira backport release-4.21,release-4.20 |
|
@bryan-cox: The following backport issues have been created:
Queuing cherrypicks to the requested branches to be created after this PR merges: 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. |
|
@openshift-ci-robot: #7634 failed to apply on top of branch "release-4.20": 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 kubernetes-sigs/prow repository. |
|
@openshift-ci-robot: new pull request created: #7684 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 kubernetes-sigs/prow repository. |
|
Fix included in accepted release 4.22.0-0.nightly-2026-02-17-112443 |
What this PR does / why we need it:
Fixes constant updates to the
openshift-controller-manager-configConfigMap in OCP 4.20+, which was causing openshift-controller-manager pods to restart every minute.The OCM config update logic (which disabled the serviceaccount-pull-secrets controller when image registry managementState was Removed) is no longer needed because CPOv2 manages this ConfigMap in 4.20+. This PR removes that logic entirely from HCCO, preventing the unnecessary updates that trigger pod restarts.
Which issue(s) this PR fixes:
Fixes OCPBUGS-74931
Special notes for your reviewer:
reconcileImageRegistryfunction to improve testabilityReconcile, matching the pattern used for ingress capabilityTestReconcileOcmConfigChangetest was updated to verify that OCM config remains unchanged for all platformsChecklist:
🤖 Generated with Claude Code