-
Notifications
You must be signed in to change notification settings - Fork 253
render: include olm.bundle.object properties in rendered bundle images #807
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
render: include olm.bundle.object properties in rendered bundle images #807
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joelanford 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 |
3c066e6
to
32a1f1e
Compare
Thanks for your quick action!
Yes, this is a potential issue, but why not add a command or integrate some code to address this issue at this time? Or am I missing something? Thanks! |
32a1f1e
to
6bcfa75
Compare
6bcfa75
to
e7e9c01
Compare
Codecov Report
@@ Coverage Diff @@
## master #807 +/- ##
==========================================
- Coverage 51.08% 50.92% -0.16%
==========================================
Files 103 103
Lines 9056 8995 -61
==========================================
- Hits 4626 4581 -45
+ Misses 3553 3551 -2
+ Partials 877 863 -14
Continue to review full report at Codecov.
|
e7e9c01
to
1b07b54
Compare
This is a completely reasonable thing to do, and you aren't missing anything. We're methodically designing and building out the pieces that catalog maintainers will likely need, and we want to make sure we build the right abstractions. This "prune unnecessary bundle objects" feature likely falls in the broader category of catalog post-processing and optimizations, so we're holding off on integrating specific post-processors until we have a more holistic idea of how all the catalog pipeline pieces fit together. |
Signed-off-by: Joe Lanford <[email protected]>
1b07b54
to
5b19561
Compare
@@ -296,22 +296,33 @@ func populateDBRelatedImages(ctx context.Context, cfg *declcfg.DeclarativeConfig | |||
} | |||
|
|||
func bundleToDeclcfg(bundle *registry.Bundle) (*declcfg.DeclarativeConfig, error) { | |||
bundleProperties, err := registry.PropertiesFromBundle(bundle) | |||
objs, props, err := registry.ObjectsAndPropertiesFromBundle(bundle) |
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.
This is the breaking change that go-apidiff is complaining about. This function was introduced with FBC code, so it hasn't been in the wild long.
I'm perfectly willing to refactor to avoid a breaking change if others think its necessary here.
/lgtm |
Signed-off-by: Joe Lanford [email protected]
Description of the change:
In
opm render
, includeolm.bundle.object
properties in rendered bundle images.Motivation for the change:
By default, we need bundles to include
olm.bundle.object
properties so that the GRPC server can servethem to OLM's
packageserver
component, which is used by OLM clients (e.g. the kubectl-operator plugin) to provide user-friendly installation workflows and display information about the operators available in catalogs installed in the cluster.Note:
packageserver
only actually uses the CSVs from the heads of each channel. Catalog maintainers may opt to delete objects from non-channel heads to reduce the size of the catalog.Reviewer Checklist
/docs