Merge pull request #550 from Mashimiao/add-devicecgroup-and-devices
add devices for resources and DeviceCgroup
This commit is contained in:
commit
4a910f0711
|
@ -61,6 +61,20 @@
|
||||||
"id": "https://opencontainers.org/schema/bundle/linux/resources",
|
"id": "https://opencontainers.org/schema/bundle/linux/resources",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"devices": {
|
||||||
|
"id": "https://opencontainers.org/schema/bundle/linux/resources/devices",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "defs-linux.json#/definitions/DeviceCgroup"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"oomScoreAdj": {
|
"oomScoreAdj": {
|
||||||
"id": "https://opencontainers.org/schema/bundle/linux/resources/oomScoreAdj",
|
"id": "https://opencontainers.org/schema/bundle/linux/resources/oomScoreAdj",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|
|
@ -217,6 +217,40 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"DeviceCgroup": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"allow": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"$ref": "defs.json#/definitions/stringPointer"
|
||||||
|
},
|
||||||
|
"major": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Major"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minor": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Minor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"access": {
|
||||||
|
"$ref": "defs.json#/definitions/stringPointer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"NetworkInterfacePriority": {
|
"NetworkInterfacePriority": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
Loading…
Reference in New Issue