Skip to content

Conversation

@thaJeztah
Copy link

integration/container: TestContainerdContainerImageInfo: adjust API version

The "Containerd" field in /info was added in API 1.46

daemon: move filling ContainerdInfo to fillContainerdInfo

Move it to a separate function; while the intended purpose is
for debugging, it does not have to be in the same function
that fills the debug information.

Also pass the daemon configuration that's already present,
instead of fetching it separately.

api: swagger: move examples per-field, and update descriptions

  • move the example-values per-field to prevent the example response
    getting out of sync with the actual struct.
  • add default values for each field (although these are configurable)
  • add some wording about these values being configurable, but not
    generally recommended to be changed.

api/types/system: ContainerdNamespaces: update GoDoc

Update the GoDoc of this struct with a description similar to what's
used in the swagger.

api/server/router/system: hide Containerd field on API < 1.46

This field was introduced in API 1.46, and should not be returned on
older API versions.

docs/api: update version history

Move it to a separate function; while the intended purpose is
for debugging, it does not have to be in the same function
that fills the debug information.

Also pass the daemon configuration that's already present,
instead of fetching it separately.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- move the example-values per-field to prevent the example response
  getting out of sync with the actual struct.
- add default values for each field (although these are configurable)
- add some wording about these values being configurable, but not
  generally recommended to be changed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Update the GoDoc of this struct with a description similar to what's
used in the swagger.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This field was introduced in API 1.46, and should not be returned on
older API versions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@cpuguy83 cpuguy83 merged commit 4345727 into cpuguy83:containerd_image_info Jun 15, 2024
@thaJeztah thaJeztah deleted the containerd_image_info_suggestions branch June 15, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants