Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions api/apiv1/design/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ var CreateDatabaseResponse = g.Type("CreateDatabaseResponse", func() {
g.Description("The database being created.")
g.Meta("struct:tag:json", "database")
})
g.Attribute("warnings", g.ArrayOf(g.String), func() {
g.Description("Non-fatal warnings generated during spec validation, e.g. when a custom image override is not found in the version manifest.")
g.Meta("struct:tag:json", "warnings,omitempty")
})

g.Required("task", "database")

Expand Down Expand Up @@ -1242,6 +1246,10 @@ var UpdateDatabaseResponse = g.Type("UpdateDatabaseResponse", func() {
g.Description("The database being updated.")
g.Meta("struct:tag:json", "database")
})
g.Attribute("warnings", g.ArrayOf(g.String), func() {
g.Description("Non-fatal warnings generated during spec validation, e.g. when a custom image override is not found in the version manifest.")
g.Meta("struct:tag:json", "warnings,omitempty")
})

g.Required("task", "database")

Expand Down Expand Up @@ -1949,6 +1957,14 @@ var SwarmOpts = g.Type("SwarmOpts", func() {
})
g.Meta("struct:tag:json", "extra_labels,omitempty")
})
g.Attribute("image", g.String, func() {
g.Description("User-specified container image override. Bypasses manifest version " +
"constraints entirely — the CP will deploy this image without validating it against " +
"the version manifest. A warning is returned if the image is not found in the manifest. " +
"Clearing this field causes the CP to fall back to the manifest-resolved image on the " +
"next reconcile.")
g.Meta("struct:tag:json", "image,omitempty")
})
})

var OrchestratorOpts = g.Type("OrchestratorOpts", func() {
Expand Down
12 changes: 12 additions & 0 deletions api/apiv1/gen/control_plane/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/apiv1/gen/http/cli/control_plane/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/apiv1/gen/http/control_plane/client/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions api/apiv1/gen/http/control_plane/client/encode_decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions api/apiv1/gen/http/control_plane/client/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions api/apiv1/gen/http/control_plane/server/encode_decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions api/apiv1/gen/http/control_plane/server/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading