-
Notifications
You must be signed in to change notification settings - Fork 54
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
Refactor legacy upgrade constraint semantics #450
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #450 +/- ##
==========================================
- Coverage 84.00% 83.62% -0.38%
==========================================
Files 23 23
Lines 844 849 +5
==========================================
+ Hits 709 710 +1
- Misses 93 95 +2
- Partials 42 44 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@@ -63,5 +62,24 @@ func NewInstalledPackageVariableSource(catalogClient BundleProvider, bundleImage | |||
return &InstalledPackageVariableSource{ | |||
catalogClient: catalogClient, | |||
bundleImage: bundleImage, | |||
successors: legacySemanticsSuccessors, |
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.
Context: this will be swapable based on feature gate. More to come in #444.
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.
Looks good to me, after addressing my comment about use of require
vs assert
testify packages in the tests.
* Make successors func swappable * Update test to not use Ginkgo & prepare the test to be able to switch between different states of the `ForceSemverUpgradeConstraints` feature flag Signed-off-by: Mikalai Radchuk <[email protected]>
616bd9f
to
0b031ec
Compare
Description
ForceSemverUpgradeConstraints
feature flagCloses #397
Reviewer Checklist