mirror of
https://github.com/docker/compose.git
synced 2025-07-24 06:04:57 +02:00
Allow strings for cpus fields
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
c960b028b9
commit
60514c1adb
@ -153,7 +153,7 @@
|
|||||||
"cpu_period": {"type": ["number", "string"]},
|
"cpu_period": {"type": ["number", "string"]},
|
||||||
"cpu_rt_period": {"type": ["number", "string"]},
|
"cpu_rt_period": {"type": ["number", "string"]},
|
||||||
"cpu_rt_runtime": {"type": ["number", "string"]},
|
"cpu_rt_runtime": {"type": ["number", "string"]},
|
||||||
"cpus": {"type": "number", "minimum": 0},
|
"cpus": {"type": ["number", "string"]},
|
||||||
"cpuset": {"type": "string"},
|
"cpuset": {"type": "string"},
|
||||||
"credential_spec": {
|
"credential_spec": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -503,7 +503,7 @@
|
|||||||
"limits": {
|
"limits": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"cpus": {"type": "number", "minimum": 0},
|
"cpus": {"type": ["number", "string"]},
|
||||||
"memory": {"type": "string"}
|
"memory": {"type": "string"}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
@ -512,7 +512,7 @@
|
|||||||
"reservations": {
|
"reservations": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"cpus": {"type": "number", "minimum": 0},
|
"cpus": {"type": ["number", "string"]},
|
||||||
"memory": {"type": "string"},
|
"memory": {"type": "string"},
|
||||||
"generic_resources": {"$ref": "#/definitions/generic_resources"}
|
"generic_resources": {"$ref": "#/definitions/generic_resources"}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user