Open sugarraysam opened 2 years ago
opm render <bundleDir>
is not quite straightforward because one of the FBC fields for a bundle is the .image
. There's more discussion about this particular request in https://github.com/operator-framework/operator-registry/issues/817
Also, validating a bundle directory may not be straightforward either. Consider a bundle validator that checks that the bundle's image is a multi-arch manifest list that contains the architectures that the CSV labels claim to support.
That makes sense. The underlying goal was really to avoid the current workflow which is:
The fact that validation happens at the very end is hurting performance of pipelines quite a bit, and requires 2 network interactions (push + pull) which makes the whole process a lot less reliable. I think the encompassing issue is probably this #933
Description
When using
opm
tooling to interact with bundles, we always need to build an image to use the opm tooling. For example:opm alpha bundle validate --tag <bundleImage>
opm render <bundleImage>
As bundle images simply contain data, there is no need to build an image beforehand to interact with these two commands. As a matter of fact, I have written a workaround using the OPM library: https://github.com/mt-sre/addon-metadata-operator/pull/81
We host local bundle directories and thus have access to all the necessary files.
Example
Feature request
There might be more commands that could benefit from allowing the input of a
<bundleDir>
but for building bundles and using file-based catalogs, the two following commands are necessary:opm render <bundleDir>
opm alpha bundle validate <bundleDir>
OPM version