🌱 Refactor BundleValidator to a concrete class#2291
🌱 Refactor BundleValidator to a concrete class#2291perdasilva wants to merge 1 commit intooperator-framework:mainfrom
Conversation
Signed-off-by: Per G. da Silva <pegoncal@redhat.com>
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2291 +/- ##
==========================================
+ Coverage 71.38% 72.10% +0.72%
==========================================
Files 90 91 +1
Lines 7003 7185 +182
==========================================
+ Hits 4999 5181 +182
Misses 1592 1592
Partials 412 412
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:
|
|
closing as stale |
Description
The current BundleValidator is implemented almost as a framework, its a singleton that always exists in memory, and it feels a bit awkward to me. I was thinking it might be better to have it as a concrete thing that can be instantiated independently and at the point of use, if necessary.
In this PR we move BundleValidator to a concrete struct with the validation functions hanging off that.
I'm wondering whether:
Validatemethod.Note: the changes are currently implemented under a
v2directory. The final form of this PR would replace the current implementation invalidatorswith this. Maybe even moving it to the top level of therenderpackage.Reviewer Checklist