-
Notifications
You must be signed in to change notification settings - Fork 545
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
Enable gzip compression when unpacking bundles to ConfigMap #2240
Enable gzip compression when unpacking bundles to ConfigMap #2240
Conversation
Hi @zcahana. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Setting this PR as WIP as there are a couple of open items I'd like to get the maintainers input on:
Thanks! |
Not all index images will have an It seems like the ideal would be a technique that lets a new version of OLM attempt to use compression and then fall back to non-compression if the index image does not support compression. |
The opm binary on catalog doesn't matter though. This binary is the one that OLM happens to pull down on cluster as part of the registry image it references when it starts up as a command line parameter. The only backwards compatibility concern we need to deal with is, if a configmap already exists for a bundle before this change was applied on cluster, then the unpacker job needs to understand how to unpack both zipped an unzipped content |
This case is already handled as the configmap reading logic tries to decompress only if an Nevertheless, this might be worthy of a test. On what scenario does OLM try to install from a configmap without going through the extract job first. Does there happen to be an existing test that runs a similar scenario? |
Actually, since the registry image is configurable via the |
The e2e test currently fails since the For my understanding, the Any insights into why this is failing? |
I think I figured out why |
Note: this PR is currently blocked until the new The attempted fix in operator-framework/operator-registry#697 may have addressed one issue with the images, but it appears that there are other issues still breaking the builds (see this comment). It'd be best if someone with a broader understanding of these images (as well as access to the build logs) can take a look at this. Thanks! :-) |
As a workaround to the Also, I've just realized I'll need to bump the module dependency on operator-registry since the configmap decompression logic is vendored from there. Is there a new operator-registry release planned to be cut soon? |
We actually just had a new operator-registry release today, https://github.com/operator-framework/operator-registry/releases |
Awesome, I'll update the go.mod with it. |
Signed-off-by: Zvi Cahana <zvic@il.ibm.com>
Signed-off-by: Zvi Cahana <zvic@il.ibm.com>
Signed-off-by: Zvi Cahana <zvic@il.ibm.com>
Signed-off-by: Zvi Cahana <zvic@il.ibm.com>
upstream-tests check fails with the following error:
I think this happens since the |
Signed-off-by: Zvi Cahana <zvic@il.ibm.com>
/retest |
@zcahana: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kevinrizza, zcahana 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 |
/lgtm |
Is it possible for this support be be back ported to earlier version of OCP 4.x? I have heard this functionality is only slated to go into OCP 4.9 currently, is that correct? |
Signed-off-by: Zvi Cahana zvic@il.ibm.com
Description of the change:
This is a follow-up PR to operator-framework/operator-registry#685 which introduced Gzip compression support when unpacking bundle images to ConfigMap via
opm alpha bundle extract
command.The current PR closes the loop by setting the corresponding
-z/--gzip
flag when spawning the bundle extract Job that runs the above opm command.Motivation for the change:
Enable OLM users to install operator with bundles reasonably larger than the current 1 MiB limit.
Reviewer Checklist
/doc