You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`kind` (string, REQUIRED) field specifies a label which uniquely identifies the device vendor.
180
180
It can be used to disambiguate the vendor that matches a device, e.g: `docker/podman run --device vendor.com/device=foo ...`.
181
181
* The `kind` label has two segments: a prefix and a name, separated by a slash (/).
182
-
* The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (\_), dots (.), and alphanumerics between.
182
+
* The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (\_), dots (.), and alphanumerics between. Dots (.) are supported from v0.6.0.
183
183
* The prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/).
*`Annotations` (string, OPTIONAL) field contains a set of key-value pairs that may be used to provide additional information to a consumer on the spec. Added in v0.6.0.
189
+
188
190
#### CDI Devices
189
191
190
192
The `devices` field describes the set of hardware devices that can be requested by the container runtime user.
@@ -197,6 +199,7 @@ Note: For a CDI file to be valid, at least one entry must be specified in this a
197
199
* Entries in the array MUST use the same schema as the entry for the `name` field
198
200
*`containerEdits` (object, OPTIONAL) this field is described in the next section.
199
201
* This field should only be merged in the OCI spec if the device has been requested by the container runtime user.
202
+
*`Annotations` (string, OPTIONAL) field contains a set of key-value pairs that may be used to provide additional information to a consumer on the spec. Added in v0.6.0.
200
203
201
204
202
205
#### OCI Edits
@@ -212,7 +215,7 @@ The `containerEdits` field has the following definition:
212
215
*`env` (array of strings in the format of "VARNAME=VARVALUE", OPTIONAL) describes the environment variables that should be set. These values are appended to the container environment array.
213
216
*`deviceNodes` (array of objects, OPTIONAL) describes the device nodes that should be mounted:
214
217
*`path` (string, REQUIRED) path of the device within the container.
215
-
*`hostPath` (string, OPTIONAL) path of the device node on the host. If not specified the value for `path` is used.
218
+
*`hostPath` (string, OPTIONAL) path of the device node on the host. If not specified the value for `path` is used. Added in v0.5.0.
216
219
*`type` (string, OPTIONAL) Device type: block, char, etc.
217
220
*`major` (int64, OPTIONAL) Device major number.
218
221
*`minor` (int64, OPTIONAL) Device minor number.
@@ -226,7 +229,7 @@ The `containerEdits` field has the following definition:
226
229
*`mounts` (array of objects, OPTIONAL) describes the mounts that should be mounted:
227
230
*`hostPath` (string, REQUIRED) path of the device on the host.
228
231
*`containerPath` (string, REQUIRED) path of the device within the container.
229
-
*`type` (string, OPTIONAL) the type of the filesystem to be mounted. For bind mounts (when options include either bind or rbind), the type is a dummy, often "none" (not listed in /proc/filesystems).
232
+
*`type` (string, OPTIONAL) the type of the filesystem to be mounted. For bind mounts (when options include either bind or rbind), the type is a dummy, often "none" (not listed in /proc/filesystems). Added in v0.4.0.
230
233
*`options` (array of strings, OPTIONAL) Mount options of the filesystem to be used.
231
234
*`hooks` (array of objects, OPTIONAL) describes the hooks that should be ran:
232
235
*`hookName` is the name of the hook to invoke, if the runtime is OCI compliant it should be one of {createRuntime, createContainer, startContainer, poststart, poststop}.
@@ -235,13 +238,13 @@ The `containerEdits` field has the following definition:
235
238
*`args` (array of strings, OPTIONAL) with the same semantics as IEEE Std 1003.1-2008 execv's argv.
236
239
*`env` (array of strings, OPTIONAL) with the same semantics as IEEE Std 1003.1-2008's environ.
237
240
*`timeout` (int, OPTIONAL) is the number of seconds before aborting the hook. If set, timeout MUST be greater than zero. If not set container runtime will wait for the hook to return.
238
-
*`intelRdt` (object, OPTIONAL) describes the Linux [resctrl][resctrl] settings for the container (object, OPTIONAL)
241
+
*`intelRdt` (object, OPTIONAL) describes the Linux [resctrl][resctrl] settings for the container (object, OPTIONAL). Added in v0.7.0.
239
242
*`closID` (string, OPTIONAL) name of the `CLOS` (Class of Service).
240
243
*`l3CacheSchema` (string, OPTIONAL) L3 cache allocation schema for the `CLOS`.
241
244
*`memBwSchema` (string, OPTIONAL) memory bandwidth allocation schema for the `CLOS`.
242
245
*`enableCMT` (boolean, OPTIONAL) whether to enable cache monitoring
243
246
*`enableMBM` (boolean, OPTIONAL) whether to enable memory bandwidth monitoring
244
-
*`additionalGids` (array of uint32s, OPTIONAL) A list of additional group IDs to add with the container process. These values are added to the `user.additionalGids` field in the OCI runtime specification. Values of 0 are ignored.
247
+
*`additionalGids` (array of uint32s, OPTIONAL) A list of additional group IDs to add with the container process. These values are added to the `user.additionalGids` field in the OCI runtime specification. Values of 0 are ignored. Added in v0.7.0.
0 commit comments