Skip to content

Commit ec0fc3d

Browse files
committed
runtime: Clarify ociVersion as based on the state schema
The old wording was ambiguous. For example, if the configuration had ociVersion set to 1.0.0 and the container was created with a 1.1.0 runtime, which version should show up in the state? With this commit, we use the version which matches the state schema, because the config/runtime versions used for creation don't seem particularly important once the container has been created, while the state schema version is important for state consumers. For example, if new properties were added to the state spec between 1.0.0 and 1.1.0, a consumer would want to see 1.1.0 in the state's ociVersion so it could decide whether it could rely on those new properties. Signed-off-by: W. Trevor King <[email protected]>
1 parent 96de01b commit ec0fc3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Whether other entities using the same, or other, instance of the runtime can see
99

1010
The state of a container includes the following properties:
1111

12-
* **`ociVersion`** (string, REQUIRED) is the OCI specification version used when creating the container.
12+
* **`ociVersion`** (string, REQUIRED) is version of the Open Container Initiative Runtime Specification with which the state complies.
1313
* **`id`** (string, REQUIRED) is the container's ID.
1414
This MUST be unique across all containers on this host.
1515
There is no requirement that it be unique across hosts.

0 commit comments

Comments
 (0)