ROSAENG-61403 | refactor: remove unused OCM-role API#3337
Conversation
|
Skipping CI for Draft Pull Request. |
📝 WalkthroughWalkthroughThe change renames the exported function Changes
Related PRs: None specified. Suggested labels: api-change, breaking-change Suggested reviewers: None specified. Poem: A rabbit hopped through code so neat, 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3337 +/- ##
==========================================
- Coverage 28.38% 28.33% -0.05%
==========================================
Files 334 333 -1
Lines 36730 36688 -42
==========================================
- Hits 10424 10397 -27
+ Misses 25549 25539 -10
+ Partials 757 752 -5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@andclt is this ready for review ? |
Yes! |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andclt, olucasfreitas 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 |
|
@andclt: 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. |
PR Summary
Removes unused CAPA-targeted API from
pkg/ocmrole.Detailed Description of the Issue
CAPA made a decision not to leverage the exposed OCM API from ROSA CLI (kubernetes-sigs/cluster-api-provider-aws#6055). This PR removes the unused public API.
Related Issues and PRs
Type of Change
Previous Behavior
The codebase contained exported API functions in
pkg/ocmrole/that were intended for external CAPA consumption but are not being used.Behavior After This Change
Removed:
pkg/ocmrole/api.go-GetOrCreateOCMRole()function and re-exported typespkg/ocmrole/api_test.go- test suite for the public APIChanged::
createPermissionPolicy()lowercase (package-private) since it's only used within the internal packageHow to Test (Step-by-Step)
Preconditions
Test Steps
make buildmake testExpected Results
Proof of the Fix
Test output:
✓ make rosa - build successful
✓ make test - all tests pass
Breaking Changes
The removed API was never consumed externally. Only internal package structure changed, which is not part of the public API.
Breaking Change Details / Migration Plan
Developer Verification Checklist
[JIRA-TICKET] | [TYPE]: <MESSAGE>.make install-hookshas been run in this clone.make testpasses.make lintpasses.make rosapasses.Summary by CodeRabbit