Skip to content

Commit b10c0b2

Browse files
author
Mrunal Patel
authored
Merge pull request #654 from wking/unique-within-this-map
config: Bring "unique... within this map" back together
2 parents b12752e + 9cc6137 commit b10c0b2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

config.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,19 @@ If a hook returns a non-zero exit code, then an error is logged and the remainin
391391

392392
**`annotations`** (object, OPTIONAL) contains arbitrary metadata for the container.
393393
This information MAY be structured or unstructured.
394-
Annotations MUST be a key-value map where both the key and value MUST be strings.
395-
While the value MUST be present, it MAY be an empty string.
396-
Keys MUST be unique and MUST NOT be an empty string within this map, and best practice is to namespace the keys.
394+
Annotations MUST be a key-value map.
395+
If there are no annotations then this property MAY either be absent or an empty map.
396+
397+
Keys MUST be strings.
398+
Keys MUST be unique within this map.
399+
Keys MUST NOT be an empty string.
397400
Keys SHOULD be named using a reverse domain notation - e.g. `com.example.myKey`.
398401
Keys using the `org.opencontainers` namespace are reserved and MUST NOT be used by subsequent specifications.
399-
If there are no annotations then this property MAY either be absent or an empty map.
400402
Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unknown annotation key.
401403

404+
Values MUST be strings.
405+
Values MAY be an empty string.
406+
402407
```json
403408
"annotations": {
404409
"com.example.gpu-cores": "2"

0 commit comments

Comments
 (0)