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: config.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -324,15 +324,24 @@ The semantics are the same as `Path`, `Args` and `Env` in [golang Cmd](https://g
324
324
325
325
**`annotations`** (object, optional) contains arbitrary metadata for the container.
326
326
This information MAY be structured or unstructured.
327
-
Annotations are key-value maps.
327
+
Annotations MUST be a key-value map where both the key and value MUST be strings.
328
+
While the value MUST be present, it MAY be an empty string.
329
+
Keys MUST be unique within this map, and best practice is to namespace the keys.
330
+
Keys SHOULD be named using a reverse domain notation - e.g. `com.example.myKey`.
331
+
Keys using the `org.opencontainers` namespace are reserved and MUST NOT be used by subsequent specifications.
332
+
If there are no annotations then this property MAY either be absent or an empty map.
333
+
Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unknown annotation key.
328
334
329
335
```json
330
336
"annotations": {
331
-
"key1" : "value1",
332
-
"key2" : "value2"
337
+
"com.example.gpu-cores" : "2"
333
338
}
334
339
```
335
340
341
+
## Extensibility
342
+
Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unkown property.
343
+
Instead they MUST ignore unknown properties.
344
+
336
345
## Configuration Schema Example
337
346
338
347
Here is a full example `config.json` for reference.
@@ -683,8 +692,8 @@ Here is a full example `config.json` for reference.
0 commit comments