Skip to content
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

Operator-sdk 1.28.1 uses non-existing storage digest because the new release procedure rebuilds storage image #6417

Closed
tkrishtop opened this issue May 3, 2023 · 4 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Milestone

Comments

@tkrishtop
Copy link
Contributor

Bug Report

We created this pull request to restore the previously working situation with the hardcoded digests that allowed us to use the DCI-Preflight integration in disconnected environments.

Unfortunately, the release procedure deleted the digest we hardcoded by pushing scorecard-storage to the same tag.

We really need to fix the release procedure. I propose excluding scorecard-storage from the rebuild entirely because it's a stable wrapper of BusyBox and not intended to change often:

https://github.com/operator-framework/operator-sdk/blob/af14062577914e4c79c77d8a31d2cf808e5ed76b/images/scorecard-storage/Dockerfile#L1C1-L12

Here is the whole story:

$ podman pull quay.io/operator-framework/scorecard-storage@sha256:f7bd62664a0b91034acb977a8bb4ebb76bc98a6e8bdb943eb84c8e364828f056
Trying to pull quay.io/operator-framework/scorecard-storage@sha256:f7bd62664a0b91034acb977a8bb4ebb76bc98a6e8bdb943eb84c8e364828f056...
Error: initializing source docker://quay.io/operator-framework/scorecard-storage@sha256:f7bd62664a0b91034acb977a8bb4ebb76bc98a6e8bdb943eb84c8e364828f056: 
reading manifest sha256:f7bd62664a0b91034acb977a8bb4ebb76bc98a6e8bdb943eb84c8e364828f056 in quay.io/operator-framework/scorecard-storage: 
manifest unknown

Possible Solution

We should probably exclude scorecard-storage from the GitHub action to rebuild all images:

description: Force rebuild of all images.

cc: @tonyskapunk @bcrochet @everettraven

@everettraven
Copy link
Contributor

@tkrishtop Thanks for raising this issue! I agree that it is likely unnecessary to rebuild this image. This issue should be brought up in the community meeting on Monday (May 8th, 2023) for discussion as part of the issue triage process.

@varshaprasad96
Copy link
Member

@tkrishtop Would you mind creating a PR to fix the release process to not build scorecard-storage image? We can provide more inputs on where/how the release artifacts are built. Thanks!

@varshaprasad96 varshaprasad96 added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label May 8, 2023
@acornett21
Copy link
Contributor

Is this actually happening in the freshen images, since neither the ``untarorstorage` images are referenced in this file? Or is it happening in the release itself?

@tkrishtop
Copy link
Contributor Author

Hello @everettraven and @varshaprasad96, I'm sorry for missing the discussion. I was off from May 4th to May 8th.

Thank you, @acornett21, for starting the PR. I have proposed some changes to add.

FYI, two years from now, the struggles with mirroring by digests should be over thanks to mirroring by tags coming soon in the new 4.13 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
None yet
Development

No branches or pull requests

4 participants