mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
fix blkio related validation
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -128,7 +128,7 @@
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -142,7 +142,7 @@
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -156,7 +156,7 @@
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer"
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceThrottle"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -168,7 +168,7 @@
|
||||
"id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeightDevice",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer"
|
||||
"$ref": "defs-linux.json#/definitions/blockIODeviceWeight"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-21
@@ -188,16 +188,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIODeviceWeightPointer": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/blockIODeviceWeight"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIODeviceThrottle": {
|
||||
"allOf": [
|
||||
{
|
||||
@@ -207,22 +197,12 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"rate": {
|
||||
"$ref": "defs.json#/definitions/uint64Pointer"
|
||||
"$ref": "defs.json#/definitions/uint64"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"blockIODeviceThrottlePointer": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/blockIODeviceThrottle"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"DeviceCgroup": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user