mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #51762 from thaJeztah/json_tag
api/types/swarm: ResourceRequirements.MemorySwappiness: fix json tag
This commit is contained in:
@@ -148,7 +148,7 @@ type ResourceRequirements struct {
|
||||
// Tune container memory swappiness (0 to 100) - if not specified, defaults
|
||||
// to the container OS's default - generally 60, or the value predefined in
|
||||
// the image; set to -1 to unset a previously set value
|
||||
MemorySwappiness *int64 `json:MemorySwappiness,omitzero"`
|
||||
MemorySwappiness *int64 `json:"MemorySwappiness,omitzero"`
|
||||
}
|
||||
|
||||
// Placement represents orchestration parameters.
|
||||
|
||||
2
vendor/github.com/moby/moby/api/types/swarm/task.go
generated
vendored
2
vendor/github.com/moby/moby/api/types/swarm/task.go
generated
vendored
@@ -148,7 +148,7 @@ type ResourceRequirements struct {
|
||||
// Tune container memory swappiness (0 to 100) - if not specified, defaults
|
||||
// to the container OS's default - generally 60, or the value predefined in
|
||||
// the image; set to -1 to unset a previously set value
|
||||
MemorySwappiness *int64 `json:MemorySwappiness,omitzero"`
|
||||
MemorySwappiness *int64 `json:"MemorySwappiness,omitzero"`
|
||||
}
|
||||
|
||||
// Placement represents orchestration parameters.
|
||||
|
||||
Reference in New Issue
Block a user