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
In all of these cases we want to use the RFC 2119 semantics.
Generated with:
$ sed -i 's/required/REQUIRED/g' config*.md
after which I rolled back the change for:
...controllers required to fulfill...
since that was already MUSTed.
Signed-off-by: W. Trevor King <[email protected]>
Copy file name to clipboardExpand all lines: config-linux.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ For more information, see [the man page](http://man7.org/linux/man-pages/man7/na
26
26
Namespaces are specified as an array of entries inside the `namespaces` root field.
27
27
The following parameters can be specified to setup namespaces:
28
28
29
-
***`type`***(string, required)* - namespace type. The following namespaces types are supported:
29
+
***`type`***(string, REQUIRED)* - namespace type. The following namespaces types are supported:
30
30
***`pid`** processes inside the container will only be able to see other processes inside the same container.
31
31
***`network`** the container will have its own network stack.
32
32
***`mount`** the container will have an isolated mount table.
@@ -104,10 +104,10 @@ The runtime may supply them however it likes (with [mknod][mknod.2], by bind mou
104
104
105
105
The following parameters can be specified:
106
106
107
-
***`type`***(string, required)* - type of device: `c`, `b`, `u` or `p`.
107
+
***`type`***(string, REQUIRED)* - type of device: `c`, `b`, `u` or `p`.
108
108
More info in [mknod(1)][mknod.1].
109
-
***`path`***(string, required)* - full path to device inside container.
110
-
***`major, minor`***(int64, required unless **`type`** is `p`)* - [major, minor numbers][devices] for the device.
109
+
***`path`***(string, REQUIRED)* - full path to device inside container.
110
+
***`major, minor`***(int64, REQUIRED unless **`type`** is `p`)* - [major, minor numbers][devices] for the device.
111
111
***`fileMode`***(uint32, OPTIONAL)* - file mode for the device.
112
112
You can also control access to devices [with cgroups](#device-whitelist).
113
113
***`uid`***(uint32, OPTIONAL)* - id of device owner.
@@ -204,7 +204,7 @@ The runtime MUST apply entries in the listed order.
204
204
205
205
The following parameters can be specified:
206
206
207
-
***`allow`***(boolean, required)* - whether the entry is allowed or denied.
207
+
***`allow`***(boolean, REQUIRED)* - whether the entry is allowed or denied.
208
208
***`type`***(string, OPTIONAL)* - type of device: `a` (all), `c` (char), or `b` (block).
209
209
`null` or unset values mean "all", mapping to `a`.
210
210
***`major, minor`***(int64, OPTIONAL)* - [major, minor numbers][devices] for the device.
@@ -347,15 +347,15 @@ The following parameters can be specified to setup the controller:
347
347
***`blkioLeafWeight`***(uint16, OPTIONAL)* - equivalents of `blkioWeight` for the purpose of deciding how much weight tasks in the given cgroup has while competing with the cgroup's child cgroups. The range is from 10 to 1000.
348
348
349
349
***`blkioWeightDevice`***(array, OPTIONAL)* - specifies the list of devices which will be bandwidth rate limited. The following parameters can be specified per-device:
350
-
***`major, minor`***(int64, required)* - major, minor numbers for device. More info in `man mknod`.
350
+
***`major, minor`***(int64, REQUIRED)* - major, minor numbers for device. More info in `man mknod`.
351
351
***`weight`***(uint16, OPTIONAL)* - bandwidth rate for the device, range is from 10 to 1000
352
352
***`leafWeight`***(uint16, OPTIONAL)* - bandwidth rate for the device while competing with the cgroup's child cgroups, range is from 10 to 1000, CFQ scheduler only
353
353
354
354
You must specify at least one of `weight` or `leafWeight` in a given entry, and can specify both.
355
355
356
356
***`blkioThrottleReadBpsDevice`**, **`blkioThrottleWriteBpsDevice`**, **`blkioThrottleReadIOPSDevice`**, **`blkioThrottleWriteIOPSDevice`***(array, OPTIONAL)* - specify the list of devices which will be IO rate limited. The following parameters can be specified per-device:
357
-
***`major, minor`***(int64, required)* - major, minor numbers for device. More info in `man mknod`.
358
-
***`rate`***(uint64, required)* - IO rate limit for the device
357
+
***`major, minor`***(int64, REQUIRED)* - major, minor numbers for device. More info in `man mknod`.
358
+
***`rate`***(uint64, REQUIRED)* - IO rate limit for the device
359
359
360
360
###### Example
361
361
@@ -401,9 +401,9 @@ For more information, see the [kernel cgroups documentation about HugeTLB][cgrou
401
401
402
402
`hugepageLimits` is an array of entries, each having the following structure:
Copy file name to clipboardExpand all lines: config.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Below is a detailed description of each field defined in the configuration forma
10
10
11
11
## Specification version
12
12
13
-
***`ociVersion`** (string, required) MUST be in [SemVer v2.0.0](http://semver.org/spec/v2.0.0.html) format and specifies the version of the Open Container Runtime Specification with which the bundle complies.
13
+
***`ociVersion`** (string, REQUIRED) MUST be in [SemVer v2.0.0](http://semver.org/spec/v2.0.0.html) format and specifies the version of the Open Container Runtime Specification with which the bundle complies.
14
14
The Open Container Runtime Specification follows semantic versioning and retains forward and backward compatibility within major versions.
15
15
For example, if a configuration is compliant with version 1.1 of this specification, it is compatible with all runtimes that support any 1.1 or later release of this specification, but is not compatible with a runtime that supports 1.0 and not 1.1.
16
16
@@ -22,9 +22,9 @@ For example, if a configuration is compliant with version 1.1 of this specificat
22
22
23
23
## Root Configuration
24
24
25
-
**`root`** (object, required) configures the container's root filesystem.
25
+
**`root`** (object, REQUIRED) configures the container's root filesystem.
26
26
27
-
***`path`** (string, required) Specifies the path to the root filesystem for the container.
27
+
***`path`** (string, REQUIRED) Specifies the path to the root filesystem for the container.
28
28
The path can be an absolute path (starting with /) or a relative path (not starting with /), which is relative to the bundle.
29
29
For example (Linux), with a bundle at `/to/bundle` and a root filesystem at `/to/bundle/rootfs`, the `path` value can be either `/to/bundle/rootfs` or `rootfs`.
30
30
A directory MUST exist at the path declared by the field.
@@ -45,12 +45,12 @@ For example, if a configuration is compliant with version 1.1 of this specificat
45
45
The runtime MUST mount entries in the listed order.
46
46
The parameters are similar to the ones in [the Linux mount system call](http://man7.org/linux/man-pages/man2/mount.2.html).
47
47
48
-
***`destination`** (string, required) Destination of mount point: path inside container.
48
+
***`destination`** (string, REQUIRED) Destination of mount point: path inside container.
49
49
For the Windows operating system, one mount destination MUST NOT be nested within another mount (e.g., c:\\foo and c:\\foo\\bar).
50
-
***`type`** (string, required) The filesystem type of the filesystem to be mounted.
50
+
***`type`** (string, REQUIRED) The filesystem type of the filesystem to be mounted.
51
51
Linux: *filesystemtype* argument supported by the kernel are listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660").
52
52
Windows: ntfs.
53
-
***`source`** (string, required) A device name, but can also be a directory name or a dummy.
53
+
***`source`** (string, REQUIRED) A device name, but can also be a directory name or a dummy.
54
54
Windows: the volume name that is the target of the mount point, \\?\Volume\{GUID}\ (on Windows source is called target).
55
55
***`options`** (list of strings, OPTIONAL) Mount options of the filesystem to be used.
56
56
Linux: [supported][mount.8-filesystem-independent][options][mount.8-filesystem-specific] are listed in [mount(8)][mount.8].
@@ -92,15 +92,15 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
92
92
93
93
## Process configuration
94
94
95
-
**`process`** (object, required) configures the container process.
95
+
**`process`** (object, REQUIRED) configures the container process.
96
96
97
97
***`terminal`** (bool, OPTIONAL) specifies whether you want a terminal attached to that process, defaults to false.
98
-
***`cwd`** (string, required) is the working directory that will be set for the executable.
98
+
***`cwd`** (string, REQUIRED) is the working directory that will be set for the executable.
99
99
This value MUST be an absolute path.
100
100
***`env`** (array of strings, OPTIONAL) contains a list of variables that will be set in the process's environment prior to execution.
101
101
Elements in the array are specified as Strings in the form "KEY=value".
102
102
The left hand side MUST consist solely of letters, digits, and underscores `_` as outlined in [IEEE Std 1003.1-2001](http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html).
103
-
***`args`** (array of strings, required) executable to launch and any flags as an array.
103
+
***`args`** (array of strings, REQUIRED) executable to launch and any flags as an array.
104
104
The executable is the first element and MUST be available at the given path inside of the rootfs.
105
105
If the executable path is not an absolute path then the search $PATH is interpreted to find the executable.
106
106
@@ -126,8 +126,8 @@ The user for the process is a platform-specific structure that allows specific c
126
126
127
127
For Linux and Solaris based systems the user structure has the following fields:
128
128
129
-
***`uid`** (int, required) specifies the user ID in the [container namespace][container-namespace].
130
-
***`gid`** (int, required) specifies the group ID in the [container namespace][container-namespace].
129
+
***`uid`** (int, REQUIRED) specifies the user ID in the [container namespace][container-namespace].
130
+
***`gid`** (int, REQUIRED) specifies the group ID in the [container namespace][container-namespace].
131
131
***`additionalGids`** (array of ints, OPTIONAL) specifies additional group IDs (in the [container namespace][container-namespace]) to be added to the process.
132
132
133
133
_Note: symbolic name for uid and gid, such as uname and gname respectively, are left to upper levels to derive (i.e. `/etc/passwd` parsing, NSS, etc)_
@@ -230,11 +230,11 @@ For Windows based systems the user structure has the following fields:
230
230
231
231
**`platform`** specifies the configuration's target platform.
232
232
233
-
***`os`** (string, required) specifies the operating system family this image targets.
233
+
***`os`** (string, REQUIRED) specifies the operating system family this image targets.
234
234
The runtime MUST generate an error if it does not support the configured **`os`**.
235
235
Bundles SHOULD use, and runtimes SHOULD understand, **`os`** entries listed in the Go Language document for [`$GOOS`][go-environment].
236
236
If an operating system is not included in the `$GOOS` documentation, it SHOULD be submitted to this specification for standardization.
237
-
***`arch`** (string, required) specifies the instruction set for which the binaries in the image have been compiled.
237
+
***`arch`** (string, REQUIRED) specifies the instruction set for which the binaries in the image have been compiled.
238
238
The runtime MUST generate an error if it does not support the configured **`arch`**.
239
239
Values for **`arch`** SHOULD use, and runtimes SHOULD understand, **`arch`** entries listed in the Go Language document for [`$GOARCH`][go-environment].
240
240
If an architecture is not included in the `$GOARCH` documentation, it SHOULD be submitted to this specification for standardization.
@@ -341,7 +341,7 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
341
341
}
342
342
```
343
343
344
-
`path` is required for a hook.
344
+
`path` is REQUIRED for a hook.
345
345
`args` and `env` are OPTIONAL.
346
346
`timeout` is the number of seconds before aborting the hook.
347
347
The semantics are the same as `Path`, `Args` and `Env` in [golang Cmd](https://golang.org/pkg/os/exec/#Cmd).
0 commit comments