-
Notifications
You must be signed in to change notification settings - Fork 67
🌱 Deduplicate component generating registry+v1 manifests in appliers #2251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 Deduplicate component generating registry+v1 manifests in appliers #2251
Conversation
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2251 +/- ##
==========================================
+ Coverage 72.50% 72.90% +0.40%
==========================================
Files 87 88 +1
Lines 8593 8733 +140
==========================================
+ Hits 6230 6367 +137
- Misses 1951 1953 +2
- Partials 412 413 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems reasonable.. Justa refactory
I could not spot anything here that could block this one.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, thetechnick, tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
56213a4
into
operator-framework:main
Description
Currently, both the helm and boxcutter appliers implement different components doing the same thing: producing manifests from registry+v1 bundles and configuration.
This PR removes that duplication by unifying it the RegistryV1ManifestProvider, which wraps the registry+v1 renderer configuring it appropriately and also checks the bundle for olmv1 support. It also removes the GetWatchNamespace function incorporating it into the RegistryV1ManifestProvider.
With this PR, both applier implementations will be using the exact same component to generate the desired manifests from the (registry+v1) bundle and the configuration given through the ClusterExtension API.
Reviewer Checklist