-
Couldn't load subscription status.
- Fork 68
🌱 Decompose RegistryV1ToHelmChart function #1735
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
🌱 Decompose RegistryV1ToHelmChart function #1735
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1735 +/- ##
==========================================
+ Coverage 67.34% 67.45% +0.11%
==========================================
Files 61 61
Lines 5236 5245 +9
==========================================
+ Hits 3526 3538 +12
+ Misses 1449 1446 -3
Partials 261 261
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e4070ec to
26add31
Compare
|
broken unit test due to removal of function. |
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.
Some lint issues otherwise it seems LGTM to me 👍
26add31 to
e8ce6c8
Compare
Sorry about that. Shot from the hip as I was getting rushed off to dinner. I've fixed it up by removing the unit test. The test below it performs the same test. I also moved it to the test package to help us avoid testing private functions in the future. |
0fb3c14 to
0bc6f80
Compare
| require.Nil(t, plainBundle) | ||
| } | ||
|
|
||
| func TestRegistryV1SuiteGeneratePropagateCsvAnnotations(t *testing.T) { |
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.
Removed TestRegistryV1SuiteGeneratePropagateCsvAnnotations since it was testing an unexported function and the behavior is also tested on line 489
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.
I think I got your change 👍
042a261 to
e36a985
Compare
| spec: | ||
| installModes: | ||
| - type: AllNamespaces | ||
| supported: true |
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.
I can see here that we still using the same mock from what was removed csv.Spec.InstallModes = []v1alpha1.InstallMode{{Type: v1alpha1.InstallModeTypeMultiNamespace, Supported: true}}
| Name: fmt.Sprintf("object-%x.json", hash[0:8]), | ||
| Data: jsonData, | ||
| }) | ||
| } |
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.
👍 I can see that we are doing mainly the same just/refac/cleanup
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.
/lgtm
e36a985 to
da80fa2
Compare
da80fa2 to
985c5db
Compare
|
@perdasilva #1737 got merged, so this PR need a rebase. |
985c5db to
c9b3130
Compare
c9b3130 to
5bed60c
Compare
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com> Signed-off-by: Per G. da Silva <pegoncal@redhat.com>
5bed60c to
f02b793
Compare
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.
/lgtm
When pass in the CI ( flake )
|
New changes are detected. LGTM label has been removed. |
f8fac24
Description
Refactor
RegistryV1ToHelmChartfunction in therukpak/convertpackage by taking out the code that parses a bundle filesystem into aRegistryV1object and putting it into its own functionParseFS. This facilitates manipulation of bundles in other activities, e.g. tooling/CLIReviewer Checklist