🌱 OPRUN-4772: Extract shared object-management labels - #2946
Conversation
Phase 1/7 of OPRUN-4738: remove object-controller's dependency on operator-controller's internal metadata package. Move the label constants into internal/shared/labels and update imports in both controllers and their tests. Generalize the object-controller comments to describe owners rather than ClusterExtensions. Review focus: the package move and mechanical import changes. Metadata keys and reconciliation behavior are unchanged. No generated files. Refs: OPRUN-4738 Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (13)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughLabel imports in controller and applier code and tests now use the shared package path. The change also updates object-controller comments and adds documentation to the shared labels package. ChangesShared labels package
Estimated code review effort: 2 (Simple) | ~8 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The label package move preserves the existing metadata and behavior, so no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/cc @perdasilva @fgiudici |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: perdasilva 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 |
|
/lgtm |
fce365c
into
operator-framework:main
Description
Part 1 of 5 smaller PRs split from #2938 for OPRUN-4738.
Move the existing object-management label constants from
internal/operator-controller/labelstointernal/shared/labels, then update imports in both controllers and their tests. This removes the object-controller's dependency on operator-controller's internal metadata package. Two comments now describe the owner of a ClusterObjectSet more generally. Label keys and reconciliation behavior are unchanged.Subtask: OPRUN-4772.
Validation:
go test -tags containers_image_openpgp -short -count=1 -p 2 ./internal/object-controller/controllers ./internal/operator-controller/applier ./internal/operator-controller/controllers ./internal/shared/labelsandgit diff --check upstream/main...HEAD.Reviewer Checklist
Always review AI generated responses prior to use.
AI-assisted response via openshift-developer plugin
Summary by CodeRabbit
No end-user-visible changes.