Skip to content

client: support multiple platforms on save and load#48902

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:save_load_multiplat
Nov 20, 2024
Merged

client: support multiple platforms on save and load#48902
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:save_load_multiplat

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Nov 19, 2024

We don't yet support this at the API level, so for now it returns an error when trying to set multiple, but this makes sure that the client types are already ready for this.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added status/2-code-review containerd-integration Issues and PRs related to containerd integration area/go-sdk labels Nov 19, 2024
@thaJeztah thaJeztah added this to the 28.0.0 milestone Nov 19, 2024
@thaJeztah thaJeztah self-assigned this Nov 19, 2024
Comment thread api/server/router/image/image_routes.go Outdated
var platform *ocispec.Platform
if versions.GreaterThanOrEqualTo(httputils.VersionFromContext(ctx), "1.48") {
if formPlatforms := r.Form["platform"]; len(formPlatforms) > 1 {
// We don't yet support multiple platforms.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I should probably add a link to #48759

@thaJeztah thaJeztah force-pushed the save_load_multiplat branch 2 times, most recently from f795f84 to b6cb53e Compare November 19, 2024 13:12
@thaJeztah
Copy link
Copy Markdown
Member Author

Looks like we need a timeout on build-dev as well

Screenshot 2024-11-19 at 15 14 33

We don't yet support this at the API level, so for now it returns
an error when trying to set multiple, but this makes sure that the
client types are already ready for this.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

Let me bring this one in, and vendor changes in the CLI repo.

As discussed on Slack, I'lll have a look for a follow-up to make similar changes for "History" (mostly for future purposes, so probably will add a comment on that field to describe it as such)

@thaJeztah thaJeztah merged commit 968213c into moby:master Nov 20, 2024
@thaJeztah thaJeztah deleted the save_load_multiplat branch November 20, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk containerd-integration Issues and PRs related to containerd integration status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants