-
Notifications
You must be signed in to change notification settings - Fork 544
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
Fix canonical image ref resolution #3434
Fix canonical image ref resolution #3434
Conversation
I'm not sure this PR is needed, also I don't really like the idea of maintaining custom code for this. I think the issue lies with using |
I verified that this PR isn't needed, and that sample gha
the output
|
@acornett21 I don't think it is podman vs docker. You can see the sha for in release job for In the logs:
And then it goes:
The last bit is where we replace image ref to a canonical one with yq. Resulting It seems like I also tried other tools: I tried I think this is a small and simple enough to not cause a lot of maintenance burden. And as we learnt with docker inspect - using pre-existing tools doesn't save from head ache 🙂 |
bf538ed
to
8d91d0d
Compare
8d91d0d
to
2c5f4c9
Compare
I switched from @acornett21 @perdasilva please take another look. |
We found out that there is difference between /hold |
Previously in release scripts we were using `docker inspect` which seems to sort .RepoDigests and it makes selection of the correct digest difficult because platform-specific digest can appear at a different index depending on the digests in the list. Signed-off-by: Mikalai Radchuk <[email protected]>
2c5f4c9
to
02fad30
Compare
Moving back to the original PR with a custom go utility to resolve a canonical reference. This should be portable and we are re-using an existing dependency. I however moved utility and
|
/unhold |
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.
thank you!!! I know it's been a journey XD
9ec1b02
Description of the change:
Previously in release scripts we were using
docker inspect
which seems to sort .RepoDigests and it makes selection of the correct digest difficult because platform-specific digest can appear at a different index depending on the digests in the list.Motivation for the change:
olm.yaml
is currently being generated with platform-specific image ref. This PR fixes resolution of canonical image refs.Related to #3419
Architectural changes:
N/A
Testing remarks:
Create a new tag to trigger release automation.
Reviewer Checklist
/doc
[FLAKE]
are truly flaky and have an issue