OPRUN-4518: Rename ClusterExtensionRevision to ClusterObjectSet#191
Conversation
|
@camilamacedo86: This pull request references OPRUN-4518 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. 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. |
WalkthroughReplaces uses of ClusterExtensionRevision with ClusterObjectSet across clients, controller logic, RBAC, tests, and operator wiring; the incompatible-operator controller now derives metadata from ClusterObjectSet resources instead of ClusterExtensionRevision resources. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@pkg/controller/incompatible_operator_controller.go`:
- Around line 50-82: The controller currently only registers operatorClient and
clusterExtensionClient informers but uses ClusterObjectSet data in sync(), so
add the ClusterObjectSet informer to NewIncompatibleOperatorController by
passing clusterObjectSetClient.Informer().Informer() into
factory.New().WithInformers(...). If ClusterObjectSet is behind the feature
gate, guard adding that informer with featureGate.Enabled(...) (using the same
featureGate parameter) so the informer is only registered when the feature is
enabled; update the WithInformers argument list accordingly in
NewIncompatibleOperatorController.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 18418c3c-5877-4f49-aa5d-72212788fb04
📒 Files selected for processing (5)
cmd/cluster-olm-operator/main.gomanifests/0000_51_olm_02_operator_clusterrole.yamlpkg/clients/clients.gopkg/controller/incompatible_operator_controller.gopkg/controller/incompatible_operator_controller_test.go
✅ Files skipped from review due to trivial changes (1)
- pkg/controller/incompatible_operator_controller_test.go
🚧 Files skipped from review as they are similar to previous changes (2)
- cmd/cluster-olm-operator/main.go
- pkg/clients/clients.go
|
I'm concerned about the rename. I suspect that we will end up breaking techpreview, devpreview, and customnoupgrade. And will have to force it in. |
5 similar comments
|
@tmshort: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/41148420-2d3b-11f1-8a55-a6f097e8a2f8-0 |
5 similar comments
|
@tmshort: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/74cf0dbc-2d3b-11f1-9bff-7a440c1b998b-0 |
|
The devpreview and techpreview tests are likely failing due to openshift/operator-framework-operator-controller#682 not having merged. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, tmshort 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 |
|
/retest-required |
|
/lgtm |
|
/label qe-approved |
|
@camilamacedo86: This pull request references OPRUN-4518 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. 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. |
|
@bandrade: This PR has been marked as verified 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. |
|
@camilamacedo86: 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. |
No description provided.