You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement File-Based Catalog support for run bundle and run bundle-upgrade subcommands (#5809)
* Implement File-Based Catalog support for `run bundle` and `run bundle-upgrade` command in SDK
* Create a valid File-Based Catalog by generating bundle, package and channel blobs for a given bundle image
* Generate a valid FBC if index image provided in the CLI is FBC - add bundle to index if bundle is not present in index
* Infer the image type (SQLite/FBC) based on the image label and handle FBC scenarios accordingly
* Validate the generated FBC and convert to a string format
* Add a new registry pod container creation command to support FBC type and use new opm commands
Signed-off-by: rashmigottipati <[email protected]>
Add support for File-Based Catalog to the subcommands [operator-sdk run bundle](https://sdk.operatorframework.io/docs/cli/operator-sdk_run_bundle/#m-docsclioperator-sdk_run_bundle)
4
+
and [run bundle-upgrade](https://sdk.operatorframework.io/docs/cli/operator-sdk_run_bundle-upgrade/) so that
5
+
new indexes created by these subcommands are using the new format.
6
+
Users are able to pass in an index catalog with FBC format via the flag option `--index-image`.
returnfmt.Errorf("error in upgrading the bundle %q that was installed traditionally", i.IndexImageCatalogCreator.BundleImage)
101
+
}
102
+
i.IndexImageCatalogCreator.HasFBCLabel=isFBCImage
103
+
104
+
// set the field to true if FBC label is on the image or for a default index image.
105
+
ifi.IndexImageCatalogCreator.HasFBCLabel {
106
+
ifi.IndexImageCatalogCreator.BundleAddMode!="" {
107
+
returnfmt.Errorf("specifying the bundle add mode is not supported for File-Based Catalog bundles and index images")
108
+
}
109
+
} else {
110
+
// index image is of the SQLite index format.
111
+
deprecationMsg:=fmt.Sprintf("%s is a SQLite index image. SQLite based index images are being deprecated and will be removed in a future release, please migrate your catalogs to the new File-Based Catalog format", i.IndexImageCatalogCreator.IndexImage)
0 commit comments