mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #51110 from thaJeztah/28.x_backport_deprecate_plugin_dockerversion
[28.x backport] api/types/plugin: deprecate Config.DockerVersion field
This commit is contained in:
@@ -3142,10 +3142,15 @@ definitions:
|
||||
- Args
|
||||
properties:
|
||||
DockerVersion:
|
||||
description: "Docker Version used to create the plugin"
|
||||
description: |-
|
||||
Docker Version used to create the plugin.
|
||||
|
||||
Depending on how the plugin was created, this field may be empty or omitted.
|
||||
|
||||
Deprecated: this field is no longer set, and will be removed in the next API version.
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
example: "17.06.0-ce"
|
||||
x-omitempty: true
|
||||
Description:
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
|
||||
@@ -42,7 +42,11 @@ type PluginConfig struct {
|
||||
// Required: true
|
||||
Description string `json:"Description"`
|
||||
|
||||
// Docker Version used to create the plugin
|
||||
// Docker Version used to create the plugin.
|
||||
//
|
||||
// Depending on how the plugin was created, this field may be empty or omitted.
|
||||
//
|
||||
// Deprecated: this field is no longer set, and will be removed in the next API version.
|
||||
DockerVersion string `json:"DockerVersion,omitempty"`
|
||||
|
||||
// documentation
|
||||
|
||||
@@ -3142,10 +3142,15 @@ definitions:
|
||||
- Args
|
||||
properties:
|
||||
DockerVersion:
|
||||
description: "Docker Version used to create the plugin"
|
||||
description: |-
|
||||
Docker Version used to create the plugin.
|
||||
|
||||
Depending on how the plugin was created, this field may be empty or omitted.
|
||||
|
||||
Deprecated: this field is no longer set, and will be removed in the next API version.
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
example: "17.06.0-ce"
|
||||
x-omitempty: true
|
||||
Description:
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
|
||||
@@ -33,6 +33,9 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||
continues returning these fields when set for informational purposes, but
|
||||
they should not be depended on as they will be omitted once the legacy builder
|
||||
is removed.
|
||||
* Deprecated: the `Config.DockerVersion` field returned by the `GET /plugins`
|
||||
and `GET /images/{name}/json` endpoints is deprecated. The field is no
|
||||
longer set, and is omitted when empty.
|
||||
|
||||
## v1.50 API changes
|
||||
|
||||
|
||||
@@ -700,7 +700,7 @@ func (pm *Manager) CreateFromContext(ctx context.Context, tarCtx io.ReadCloser,
|
||||
DiffIds: []string{rootFSBlob.Digest().String()},
|
||||
}
|
||||
|
||||
config.DockerVersion = dockerversion.Version
|
||||
config.DockerVersion = dockerversion.Version //nolint:staticcheck // ignore SA1019: field is deprecated.
|
||||
|
||||
configBlob, err := pm.blobStore.Writer(ctx, content.WithRef(name+"-config.json"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user