Closed tkrishtop closed 2 years ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: tkrishtop
To complete the pull request process, please assign tonytcampbell after the PR has been reviewed.
You can assign the PR to them by writing /assign @tonytcampbell
in a comment when ready.
The full list of commands accepted by this bot can be found here.
@tkrishtop This PR would work for the existing release, but the bundles are generated. We need to replace the tags with digests prior to bundle creation.
I can work this out, but I did have questions:
1) Is it just the images in the CSV that need tags? 2) Any concerns with our catalog image which we expect you to use via tag? 3) In the interest of moving forward (instead of retroactively changing 0.0.3), would it be acceptable for your use cases for me to push a 0.0.4 bundle that contains the images and leave the 0.0.3 as is?
Thanks!
@komish thank you for the review!
Is it just the images in the CSV that need tags?
Yes, because this part is pulled during the execution, from the isolated cluster, and thus should be referred by digest (sha).
Any concerns with our catalog image which we expect you to use via tag?
Normally no. In disconnected environments, we regenerate common catalogs for all bundles to be used later on. And in the connected environments, the tag (and not digest) is fine. At least with the current fix in this PR, I got 4/4 test cases passing.
In the interest of moving forward (instead of retroactively changing 0.0.3), would it be acceptable for your use cases for me to push a 0.0.4 bundle that contains the images and leave the 0.0.3 as is?
Yes, perfectly fine, thank you.
Thanks!
@tkrishtop I've just pushed out v0.0.4 that should include images referenced by digest. Please have a look, and if there's anything further, let me know. Otherwise, I'll let you close this out if all is addressed!
@tkrishtop: PR needs rebase.
This PR is to fix the DeployableByOlm test in disconnected environments.
Why DeployableByOlm fails in disconnected env
The test fails because of CSV failure, here are logs from preflight.log:
From cluster logs we see that CSV is pending two images that failed to pull:
These images could not be mirrored in the disconnected environment because the mirroring is done by digest (SHA) and images are referenced by tags.
What was done to fix
The tags were replaced by digests as in this PR, I rebuilt all images:
and then tested the change by running Preflight tests with DCI. The tests are all green, here are results.json
and CSV is ok in preflight.log