@@ -49,7 +49,7 @@ var ForbiddenProperties = map[string]string{
4949 "cpu_shares" : "Set resource limits using deploy.resources" ,
5050 "cpuset" : "Set resource limits using deploy.resources" ,
5151 "mem_limit" : "Set resource limits using deploy.resources" ,
52- "memswap_limit" : "Set resource limits using deploy.resources" ,
52+ "memory_swap" : "Set resource limits using deploy.resources" ,
5353}
5454
5555// ConfigFile is a filename and the contents of the file as a Dict
@@ -309,8 +309,8 @@ type UpdateConfig struct {
309309type Resources struct {
310310 Limits * ResourceLimit `yaml:",omitempty" json:"limits,omitempty"`
311311 Reservations * Resource `yaml:",omitempty" json:"reservations,omitempty"`
312- MemswapLimit * int64 `mapstructure:"memswap_limit " yaml:"memswap_limit ,omitempty" json:"memswap_limit ,omitempty"`
313- MemSwappiness * int64 `mapstructure:"mem_swappiness " yaml:"mem_swappiness ,omitempty" json:"mem_swappiness ,omitempty"`
312+ MemswapLimit * int64 `mapstructure:"memory_swap " yaml:"memory_swap ,omitempty" json:"memory_swap ,omitempty"`
313+ MemSwappiness * int64 `mapstructure:"memory_swappiness " yaml:"memory_swappiness ,omitempty" json:"memory_swappiness ,omitempty"`
314314}
315315
316316// ResourceLimit is a resource to be limited
0 commit comments