|
61 | 61 | "id": "https://opencontainers.org/schema/bundle/linux/resources", |
62 | 62 | "type": "object", |
63 | 63 | "properties": { |
| 64 | + "oomScoreAdj": { |
| 65 | + "id": "https://opencontainers.org/schema/bundle/linux/resources/oomScoreAdj", |
| 66 | + "type": "integer", |
| 67 | + "minimum": -1000, |
| 68 | + "maximum": 1000 |
| 69 | + }, |
| 70 | + "pids": { |
| 71 | + "id": "https://opencontainers.org/schema/bundle/linux/resources/pids", |
| 72 | + "properties": { |
| 73 | + "limit": { |
| 74 | + "id": "https://opencontainers.org/schema/bundle/linux/resources/pids/limit", |
| 75 | + "$ref": "defs.json#/definitions/int64" |
| 76 | + } |
| 77 | + } |
| 78 | + }, |
64 | 79 | "blockIO": { |
65 | 80 | "id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO", |
66 | 81 | "type": "object", |
|
94 | 109 | "oneOf": [ |
95 | 110 | { |
96 | 111 | "type": "array", |
97 | | - "items": [ |
98 | | - { |
99 | | - "$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer" |
100 | | - } |
101 | | - ] |
| 112 | + "items": { |
| 113 | + "$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer" |
| 114 | + } |
102 | 115 | }, |
103 | 116 | { |
104 | 117 | "type": "null" |
|
110 | 123 | "oneOf": [ |
111 | 124 | { |
112 | 125 | "type": "array", |
113 | | - "items": [ |
114 | | - { |
115 | | - "$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer" |
116 | | - } |
117 | | - ] |
| 126 | + "items": { |
| 127 | + "$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer" |
| 128 | + } |
118 | 129 | }, |
119 | 130 | { |
120 | 131 | "type": "null" |
|
126 | 137 | "oneOf": [ |
127 | 138 | { |
128 | 139 | "type": "array", |
129 | | - "items": [ |
130 | | - { |
131 | | - "$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer" |
132 | | - } |
133 | | - ] |
| 140 | + "items": { |
| 141 | + "$ref": "defs-linux.json#/definitions/blockIODeviceThrottlePointer" |
| 142 | + } |
134 | 143 | }, |
135 | 144 | { |
136 | 145 | "type": "null" |
|
140 | 149 | "blkioWeightDevice": { |
141 | 150 | "id": "https://opencontainers.org/schema/bundle/linux/resources/blockIO/blkioWeightDevice", |
142 | 151 | "type": "array", |
143 | | - "items": [ |
144 | | - { |
145 | | - "$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer" |
146 | | - } |
147 | | - ] |
| 152 | + "items": { |
| 153 | + "$ref": "defs-linux.json#/definitions/blockIODeviceWeightPointer" |
| 154 | + } |
148 | 155 | } |
149 | 156 | } |
150 | 157 | }, |
|
190 | 197 | "id": "https://opencontainers.org/schema/bundle/linux/resources/hugepageLimits", |
191 | 198 | "oneOf": [ |
192 | 199 | { |
193 | | - "type": "object", |
194 | | - "properties": { |
195 | | - "pageSize": { |
196 | | - "type": "string" |
197 | | - }, |
198 | | - "limit": { |
199 | | - "$ref": "defs.json#/definitions/uint64" |
| 200 | + "type": "array", |
| 201 | + "items": { |
| 202 | + "type": "object", |
| 203 | + "properties": { |
| 204 | + "pageSize": { |
| 205 | + "type": "string" |
| 206 | + }, |
| 207 | + "limit": { |
| 208 | + "$ref": "defs.json#/definitions/uint64" |
| 209 | + } |
200 | 210 | } |
201 | 211 | } |
202 | 212 | }, |
|
235 | 245 | "id": "https://opencontainers.org/schema/bundle/linux/resources/network", |
236 | 246 | "type": "object", |
237 | 247 | "properties": { |
238 | | - "classId": { |
| 248 | + "classID": { |
239 | 249 | "id": "https://opencontainers.org/schema/bundle/linux/resources/network/classId", |
240 | | - "type": "string" |
| 250 | + "$ref": "defs.json#/definitions/uint32" |
241 | 251 | }, |
242 | 252 | "priorities": { |
243 | 253 | "id": "https://opencontainers.org/schema/bundle/linux/resources/network/priorities", |
|
257 | 267 | } |
258 | 268 | } |
259 | 269 | }, |
260 | | - "rlimits": { |
261 | | - "id": "https://opencontainers.org/schema/bundle/linux/rlimits", |
262 | | - "items": [ |
263 | | - { |
264 | | - "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0", |
265 | | - "properties": { |
266 | | - "hard": { |
267 | | - "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0/hard", |
268 | | - "type": "integer" |
269 | | - }, |
270 | | - "soft": { |
271 | | - "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0/soft", |
272 | | - "type": "integer" |
273 | | - }, |
274 | | - "type": { |
275 | | - "id": "https://opencontainers.org/schema/bundle/linux/rlimits/0/type", |
276 | | - "type": "string", |
277 | | - "pattern": "^RLIMIT_[A-Z]+$" |
278 | | - } |
279 | | - }, |
280 | | - "type": "object" |
281 | | - } |
282 | | - ], |
283 | | - "type": "array" |
284 | | - }, |
285 | 270 | "cgroupsPath": { |
286 | 271 | "oneOf": [ |
287 | 272 | { |
|
0 commit comments