|
@@ -64,6 +64,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ "patternProperties": {"^x-": {}},
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
|
|
|
|
|
"definitions": {
|
|
"definitions": {
|
|
@@ -154,6 +155,7 @@
|
|
|
"hostname": {"type": "string"},
|
|
"hostname": {"type": "string"},
|
|
|
"image": {"type": "string"},
|
|
"image": {"type": "string"},
|
|
|
"ipc": {"type": "string"},
|
|
"ipc": {"type": "string"},
|
|
|
|
|
+ "isolation": {"type": "string"},
|
|
|
"labels": {"$ref": "#/definitions/list_or_dict"},
|
|
"labels": {"$ref": "#/definitions/list_or_dict"},
|
|
|
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
|
|
|
|
|
@@ -281,7 +283,6 @@
|
|
|
{
|
|
{
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
"required": ["type"],
|
|
"required": ["type"],
|
|
|
- "additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"type": {"type": "string"},
|
|
"type": {"type": "string"},
|
|
|
"source": {"type": "string"},
|
|
"source": {"type": "string"},
|
|
@@ -300,7 +301,8 @@
|
|
|
"nocopy": {"type": "boolean"}
|
|
"nocopy": {"type": "boolean"}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ "additionalProperties": false
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
"uniqueItems": true
|
|
"uniqueItems": true
|
|
@@ -317,7 +319,7 @@
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"disable": {"type": "boolean"},
|
|
"disable": {"type": "boolean"},
|
|
|
- "interval": {"type": "string"},
|
|
|
|
|
|
|
+ "interval": {"type": "string", "format": "duration"},
|
|
|
"retries": {"type": "number"},
|
|
"retries": {"type": "number"},
|
|
|
"test": {
|
|
"test": {
|
|
|
"oneOf": [
|
|
"oneOf": [
|
|
@@ -325,7 +327,8 @@
|
|
|
{"type": "array", "items": {"type": "string"}}
|
|
{"type": "array", "items": {"type": "string"}}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
- "timeout": {"type": "string"}
|
|
|
|
|
|
|
+ "timeout": {"type": "string", "format": "duration"},
|
|
|
|
|
+ "start_period": {"type": "string", "format": "duration"}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"deployment": {
|
|
"deployment": {
|
|
@@ -353,8 +356,23 @@
|
|
|
"resources": {
|
|
"resources": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
"properties": {
|
|
"properties": {
|
|
|
- "limits": {"$ref": "#/definitions/resource"},
|
|
|
|
|
- "reservations": {"$ref": "#/definitions/resource"}
|
|
|
|
|
|
|
+ "limits": {
|
|
|
|
|
+ "type": "object",
|
|
|
|
|
+ "properties": {
|
|
|
|
|
+ "cpus": {"type": "string"},
|
|
|
|
|
+ "memory": {"type": "string"}
|
|
|
|
|
+ },
|
|
|
|
|
+ "additionalProperties": false
|
|
|
|
|
+ },
|
|
|
|
|
+ "reservations": {
|
|
|
|
|
+ "type": "object",
|
|
|
|
|
+ "properties": {
|
|
|
|
|
+ "cpus": {"type": "string"},
|
|
|
|
|
+ "memory": {"type": "string"},
|
|
|
|
|
+ "generic_resources": {"$ref": "#/definitions/generic_resources"}
|
|
|
|
|
+ },
|
|
|
|
|
+ "additionalProperties": false
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
"additionalProperties": false
|
|
"additionalProperties": false
|
|
|
},
|
|
},
|
|
@@ -389,20 +407,30 @@
|
|
|
"additionalProperties": false
|
|
"additionalProperties": false
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- "resource": {
|
|
|
|
|
- "id": "#/definitions/resource",
|
|
|
|
|
- "type": "object",
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "cpus": {"type": "string"},
|
|
|
|
|
- "memory": {"type": "string"}
|
|
|
|
|
- },
|
|
|
|
|
- "additionalProperties": false
|
|
|
|
|
|
|
+ "generic_resources": {
|
|
|
|
|
+ "id": "#/definitions/generic_resources",
|
|
|
|
|
+ "type": "array",
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "type": "object",
|
|
|
|
|
+ "properties": {
|
|
|
|
|
+ "discrete_resource_spec": {
|
|
|
|
|
+ "type": "object",
|
|
|
|
|
+ "properties": {
|
|
|
|
|
+ "kind": {"type": "string"},
|
|
|
|
|
+ "value": {"type": "number"}
|
|
|
|
|
+ },
|
|
|
|
|
+ "additionalProperties": false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ "additionalProperties": false
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
"network": {
|
|
"network": {
|
|
|
"id": "#/definitions/network",
|
|
"id": "#/definitions/network",
|
|
|
"type": ["object", "null"],
|
|
"type": ["object", "null"],
|
|
|
"properties": {
|
|
"properties": {
|
|
|
|
|
+ "name": {"type": "string"},
|
|
|
"driver": {"type": "string"},
|
|
"driver": {"type": "string"},
|
|
|
"driver_opts": {
|
|
"driver_opts": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
@@ -469,6 +497,7 @@
|
|
|
"id": "#/definitions/secret",
|
|
"id": "#/definitions/secret",
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
"properties": {
|
|
"properties": {
|
|
|
|
|
+ "name": {"type": "string"},
|
|
|
"file": {"type": "string"},
|
|
"file": {"type": "string"},
|
|
|
"external": {
|
|
"external": {
|
|
|
"type": ["boolean", "object"],
|
|
"type": ["boolean", "object"],
|
|
@@ -485,6 +514,7 @@
|
|
|
"id": "#/definitions/config",
|
|
"id": "#/definitions/config",
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
"properties": {
|
|
"properties": {
|
|
|
|
|
+ "name": {"type": "string"},
|
|
|
"file": {"type": "string"},
|
|
"file": {"type": "string"},
|
|
|
"external": {
|
|
"external": {
|
|
|
"type": ["boolean", "object"],
|
|
"type": ["boolean", "object"],
|