GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — api: image inspect: remove temporary backfill for Config fields by thaJeztah · Pull Request #50915 · moby/moby

Conversation

@thaJeztah

@thaJeztah thaJeztah commented Sep 5, 2025 •
edited by vvoland
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • relates to image-inspect: remove Config fields that are not part of the image #48457
  • api: image inspect: add back fields that did not omitempty #50135

Commit 4dc961d (API v1.50) fixed the type used for Config to point to the correct type, which is the Config struct from the Docker image spec (which embeds the OCI Image Specification type); however, those types use an omitempty, which wasn't documented as part of the API changes, so f85394d added a temporary backfill for empty fields.

This removes that backfill for API v1.52 so that empty image config fields are now omitted.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

`GET /images/{name}/json`: omit empty `Config` fields when not set.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thaJeztah thaJeztah added this to the 29.0.0 milestone Sep 5, 2025
@thaJeztah thaJeztah added area/api API status/2-code-review impact/api impact/changelog kind/refactor PR's that refactor, or clean-up code labels Sep 5, 2025
@thaJeztah
api: image inspect: remove temporary backfill for Config fields
0525ae2
Commit 4dc961d (API v1.50) fixed the type
used for Config to point to the correct type, which is the Config struct
from the [Docker image spec] (which embeds the [OCI Image Specification]
type); however, those types use an omitempty, which wasn't documented as
part of the API changes, so f85394d added
a temporary backfill for empty fields.

This removes that backfill for API v1.52 so that empty image config fields
are now omitted.

[OCI Image Specification]: https://github.com/opencontainers/image-spec/blob/v1.1.1/specs-go/v1/config.go#L23-L62
[Docker image spec]: https://github.com/moby/docker-image-spec/blob/v1.3.1/specs-go/v1/image.go#L19-L32

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
thaJeztah force-pushed the omit_empty_config branch from ff8b10a to 0525ae2 Compare September 5, 2025 20:16
@thaJeztah
thaJeztah marked this pull request as ready for review September 5, 2025 23:17
@thaJeztah thaJeztah added the release-blocker PRs we want to block a release on label Sep 8, 2025
vvoland
vvoland approved these changes Sep 8, 2025
View reviewed changes
@thaJeztah thaJeztah added this to 🔦 Maintainer spotlight Sep 11, 2025
@github-project-automation github-project-automation Bot moved this to New in 🔦 Maintainer spotlight Sep 11, 2025
austinvazquez
austinvazquez approved these changes Sep 11, 2025
View reviewed changes
@thaJeztah
thaJeztah merged commit 183f151 into moby:master Sep 11, 2025
@thaJeztah
thaJeztah deleted the omit_empty_config branch September 11, 2025 19:21
@thompson-shaun thompson-shaun moved this from New to Complete in 🔦 Maintainer spotlight Sep 18, 2025
@dmcgowan dmcgowan mentioned this pull request Sep 24, 2025
Prepare release notes for api/v1.52.0-rc.0 #51030
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vvoland vvoland vvoland approved these changes
@austinvazquez austinvazquez austinvazquez approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

area/api API impact/api impact/changelog kind/refactor PR's that refactor, or clean-up code release-blocker PRs we want to block a release on status/2-code-review

Projects

🔦 Maintainer spotlight
Archived in project

Milestone

29.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@thaJeztah @vvoland @austinvazquez
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.