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
Copy file name to clipboardExpand all lines: SPEC.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
## Version
10
10
11
-
This is CDI **spec** version **0.4.0**.
11
+
This is CDI **spec** version **0.5.0**.
12
12
13
13
### Update policy
14
14
@@ -25,6 +25,7 @@ Released versions of the spec are available as Git tags.
25
25
| -----| -----------------| -------|
26
26
| v0.3.0 || Initial tagged release of Spec |
27
27
| v0.4.0 || Added `type` field to Mount specification |
28
+
| v0.5.0 || Add `HostPath` to `DeviceNodes`|
28
29
29
30
*Note*: The initial release of a **spec** with version `v0.x.0` will be tagged as
30
31
`v0.x.0` with subsequent changes to the API applicable to this version tagged as `v0.x.y`.
@@ -79,7 +80,7 @@ The key words "must", "must not", "required", "shall", "shall not", "should", "s
79
80
80
81
```
81
82
{
82
-
"cdiVersion": "0.3.0",
83
+
"cdiVersion": "0.5.0",
83
84
"kind": "<name>",
84
85
85
86
"devices": [
@@ -103,6 +104,7 @@ The key words "must", "must not", "required", "shall", "shall not", "should", "s
103
104
"deviceNodes": [ (optional)
104
105
{
105
106
"path": "<path>",
107
+
"hostPath": "<hostPath>" (optional),
106
108
"type": "<type>" (optional),
107
109
"major": <int32> (optional),
108
110
"minor": <int32> (optional),
@@ -181,6 +183,7 @@ The `containerEdits` field has the following definition:
181
183
*`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.
182
184
*`deviceNodes` (array of objects, OPTIONAL) describes the device nodes that should be mounted:
183
185
*`path` (string, REQUIRED) path of the device within the container.
186
+
*`hostPath` (string, OPTIONAL) path of the device node on the host. If not specified the value for `path` is used.
184
187
*`type` (string, OPTIONAL) Device type: block, char, etc.
0 commit comments