Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 06b5971

Browse files
committed
Support mem_reservation service property
Signed-off-by: Lachlan Donald <[email protected]>
1 parent f12d146 commit 06b5971

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/schema.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ var servicesSchemaDataV2 = `{
298298
299299
"mac_address": {"type": "string"},
300300
"mem_limit": {"type": ["number", "string"]},
301+
"mem_reservation": {"type": ["number", "string"]},
301302
"memswap_limit": {"type": ["number", "string"]},
302303
"mem_swappiness": {"type": "integer"},
303304
"network_mode": {"type": "string"},

config/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ type ServiceConfig struct {
117117
Logging Log `yaml:"logging,omitempty"`
118118
MacAddress string `yaml:"mac_address,omitempty"`
119119
MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
120+
MemReservation yaml.MemStringorInt `yaml:"mem_reservation,omitempty"`
120121
MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
121122
MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
122123
NetworkMode string `yaml:"network_mode,omitempty"`

0 commit comments

Comments
 (0)