-
Notifications
You must be signed in to change notification settings - Fork 249
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
Please add opm render support for bundle directories. #817
Comments
Ah yes, I had forgotten that the problem with rendering bundle directories is the lack of a known bundle image. I'm hesitant to add a flag for that though, for a few reasons:
Would it be acceptable to delegate the task of inserting
|
@joelanford It would be perfect for user to enter just bundle path and leave tricks for |
@J0zi One of the big reasons for the switch to FBC is to take some of the magic out of opm and make it much more predictable than what currently exists with the In this case, my specific concern with the suggested approach is that it doesn't mesh will with the design of the The original suggestion here seems pretty straighforward and logical:
But what about these:
In each of these cases, it either doesn't make sense to specify the |
@joelanford
So it is adding missing puzzle there, path to the bundle. It is valuable for us. |
In my hacked version I managed to overcome the problem of conveying the directory name and the image name in a single argument by requiring the directory to be called the same as the image 😂 Perhaps something like |
The other issue to overcome (as that hacked commit highlights) is that we'd need a way to distinguish a bundle directory from an FBC directory. |
FBC is file-based catalog? We distinguish a bundle image from index image using labels I guess? I don't know the format by heart, but I guess there is some distinguishing feature between the content of a bundle directory and an FBC directory that can be used? |
I know it has been quite a long time, but I re-opened #748, rebased it and added a This solves the problem of trying to figure out a CLI UX that involves rendering multiple bundles. I think the open question in my mind is whether package, name, and version provide enough granularity to generate useful image references. |
Just stating the obvious: The bundle image references must use tags and can't use digests. |
Correct. Ultimately, the references templated with |
We have merged support for rendering bundle directories as an alpha feature in #748. For now, this is subject to change or be removed at any time, but if you are interested in this feature, please try it out and provide feedback, positive or negative! |
I like this feature. It would be really cool if it could generate the entire declarative config from the bundles dir. |
@IzzyMusa Thanks for the feedback!
I think this would be great too. The problem is that with FBC, bundles no longer are the sources of truth for the FBC channel upgrade graphs, so it is impossible to generate channels with just bundle directories. The algorithm or information that defines how upgrade edges are generated needs to come from somewhere else. The FBC semver template is an example of a tool that provides that algorithm over a set of bundles. I think this feature is still stuck with the problem that I mention above. Ultimately the image refs generated from the Ultimately, I'd like to have some opinionated tooling that:
Ideally, nothing needs to know the image registry URL until step 3. Unfortunately, step 2 requires the full image registry URL to exist in the FBC |
Yeah, I understand. I just have a unique case haha. I was able to look at your code (really clean) on the I don't use a bundle image. It's left empty in the
This produces:
And the two bundles thanks to the |
Hi team,
opm render
is able to consume bundle image. But we are missing the feature to render bundle directory as an input. So directly processing directory which contains CSV and CRDs.Our source of truth is git repository and final product is an index image. Also customers can make an advantage of the new would be feature and generate file based config directly from a source code.
Implementation:
something like this
will create file based config. Also
path-to-bundle-image
will be added torelatedImages
, with no check if it exists or if there is some content. Just the value will be inserted like this:Feel free to find a better name for
link-to-bundle
parameter.Many thanks.
Community operators maintainers
The text was updated successfully, but these errors were encountered: