You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
If building a multi-platform image using a multi-node buildx instance and specifying an annotation for the index, no annotation is on the pushed index. Single-platform builds, or multi-platform builds running on a single node all work fine.
Expected behaviour
Set up buildkit builder with multiple nodes for different platforms
Build an image for multiple platforms on that builder, with an index annotation:
The main difference I noticed in the log for kubernetes-multi was that it says "merging manifest list", so possibly the annotations are getting lost in the merge. With a few pointers I'd be happy to contribute a PR for this but the code that produces that log was hard for me to follow from a cold start.
The text was updated successfully, but these errors were encountered:
From a bit more reading, I've found part of the problem. The "merging manifest lists" task uses imagetools' Combine method to build the overall index but passes nil to the ann argument. I could fix this by plumbing the annotations through in Options, and probably lifting the parsing and validation currently in Combine out to its other call-site since those limitations seem specific to buildx imagetools create.
If that sounds alright as an approach then I can get a PR together quite quickly, although I'm not sure where to add tests
treuherz
added a commit
to treuherz/buildx
that referenced
this issue
Jun 21, 2024
Contributing guidelines
I've found a bug and checked that ...
Description
If building a multi-platform image using a multi-node buildx instance and specifying an annotation for the index, no annotation is on the pushed index. Single-platform builds, or multi-platform builds running on a single node all work fine.
Expected behaviour
Expect to see the annotation you specified:
Actual behaviour
No annotations on the returned JSON.
Buildx version
github.com/docker/buildx v0.14.1-desktop.1 5a0555e6c99a65811f4409bce8460a8fb89474f1
Docker info
Builders list
Configuration
Build logs
Additional info
The main difference I noticed in the log for kubernetes-multi was that it says "merging manifest list", so possibly the annotations are getting lost in the merge. With a few pointers I'd be happy to contribute a PR for this but the code that produces that log was hard for me to follow from a cold start.
The text was updated successfully, but these errors were encountered: