Commit 98b7967
committed
fix: resolve manifest list digest instead of platform-specific digest
The get_image_sha() function was using .manifests[0].digest which
returns the first platform entry (amd64) instead of the manifest list
digest. This causes the operator CSV to pin task images (buildah, s2i,
skopeo, ubi-minimal) to amd64-only digests, breaking ARM64 and
multi-arch clusters with exec format error.
Fix by computing sha256 of the raw manifest list content, which
produces the manifest list digest that container runtimes use to
resolve the correct platform at pull time.
Signed-off-by: ab-ghosh <abghosh@redhat.com>1 parent 28b360a commit 98b7967
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments