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
Merge feature/run-bundle into master: Add FBC support to run bundle
and run bundle-upgrade
commands
#5809
Conversation
a154988
to
73dfd92
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.
This looks good to me overall.
I would really like to see some tests added that reflect the test cases in the EP: https://github.com/operator-framework/enhancements/blob/master/enhancements/sdk-fbc-bundle-upgrade.md#test-plan
I think it would be okay if it was a follow-up but would be ideal if they were included in this PR.
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.
Since I've already reviewed the PRs that went into the feature branch, I'll leave this to @jmrodri and @joelanford.
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
/lgtm |
Signed-off-by: rashmigottipati <chowdary.grashmi@gmail.com>
9103a93
to
2885f88
Compare
…-upgrade` subcommands (operator-framework#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 <chowdary.grashmi@gmail.com>
Closes #5593
Description of the change:
run bundle
andrun bundle-upgrade
commands by create a file-based catalog (FBC) on the fly by generating the bundle, package and channel blobs, if an index image is not provided by the user (i.e. for a default index imagequay.io/operator-framework/opm:latest
) and serve it over a gRPC port.opm registry add
andopm registry serve
) that use SQLite under the hood will be called. So support for both (FBC/SQLite) exist at the moment. For more details, please refer to run bundle design proposal.For run bundle-upgrade: Handle upgrade for both scenarios when an operator bundle is installed using
run bundle
command and also installed traditionally via OLM. For more details, please refer to run bundle upgrade design proposal.Motivation for the change:
#5593
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs
Signed-off-by: rashmigottipati chowdary.grashmi@gmail.com