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
+6-7Lines changed: 6 additions & 7 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.3.0**.
11
+
This is CDI **spec** version **0.4.0**.
12
12
13
13
### Update policy
14
14
@@ -24,6 +24,7 @@ Released versions of the spec are available as Git tags.
24
24
| Tag | Spec Permalink | Change |
25
25
| -----| -----------------| -------|
26
26
| v0.3.0 || Initial tagged release of Spec |
27
+
| v0.4.0 || Added `type` field to Mount specification |
27
28
28
29
*Note*: The initial release of a **spec** with version `v0.x.0` will be tagged as
29
30
`v0.x.0` with subsequent changes to the API applicable to this version tagged as `v0.x.y`.
@@ -120,7 +121,8 @@ The key words "must", "must not", "required", "shall", "shall not", "should", "s
120
121
{
121
122
"hostPath": "<source>",
122
123
"containerPath": "<destination>",
123
-
"options": "<OCI Mount Options>", (optional)
124
+
"type": "<OCI Mount Type>", (optional)
125
+
"options": "<OCI Mount Options>" (optional)
124
126
}
125
127
],
126
128
"hooks": [ (optional)
@@ -192,11 +194,8 @@ The `containerEdits` field has the following definition:
192
194
*`mounts` (array of objects, OPTIONAL) describes the mounts that should be mounted:
193
195
*`hostPath` (string, REQUIRED) path of the device on the host.
194
196
*`containerPath` (string, REQUIRED) path of the device within the container.
195
-
*`readonly` (boolean, OPTIONAL) If set, the mount is read-only.
196
-
*`propagation` (string, OPTIONAL) Requested propagation mode, candidates are one of:
197
-
* private - No mount propagation ("private" in Linux terminology).
198
-
* hostToContainer - Mounts get propagated from the host to the container ("rslave" in Linux terminology).
199
-
* bidirectional - Mounts get propagated from the host to the container and from the container to the host ("rshared" in Linux terminology).
197
+
*`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).
198
+
*`options` (array of strings, OPTIONAL) Mount options of the filesystem to be used.
200
199
*`hooks` (array of objects, OPTIONAL) describes the hooks that should be ran:
201
200
*`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}.
202
201
Runtimes are free to allow custom hooks but it is advised for vendors to create a specific JSON file targeting that runtime
0 commit comments