Skip to content

Commit 2392e66

Browse files
authored
Merge pull request #674 from crosbymichael/state
Rename bundlePath to bundle
2 parents ce0783a + 5d3f167 commit 2392e66

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

runtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The value MAY be one of:
2222

2323
Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
2424
* **`pid`** (int, REQUIRED when `status` is `created` or `running`) is the ID of the container process, as seen by the host.
25-
* **`bundlePath`** (string, REQUIRED) is the absolute path to the container's bundle directory.
25+
* **`bundle`** (string, REQUIRED) is the absolute path to the container's bundle directory.
2626
This is provided so that consumers can find the container's configuration and root filesystem on the host.
2727
* **`annotations`** (map, OPTIONAL) contains the list of annotations associated with the container.
2828
If no annotations were provided then this property MAY either be absent or an empty map.
@@ -37,7 +37,7 @@ When serialized in JSON, the format MUST adhere to the following pattern:
3737
"id": "oci-container1",
3838
"status": "running",
3939
"pid": 4422,
40-
"bundlePath": "/containers/redis",
40+
"bundle": "/containers/redis",
4141
"annotations": {
4242
"myKey": "myValue"
4343
}

schema/state-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"type": "integer",
2828
"minimum": 0
2929
},
30-
"bundlePath": {
31-
"id": "https://opencontainers.org/schema/runtime/state/bundlePath",
30+
"bundle": {
31+
"id": "https://opencontainers.org/schema/runtime/state/bundle",
3232
"type": "string"
3333
},
3434
"annotations": {
@@ -40,6 +40,6 @@
4040
"id",
4141
"status",
4242
"pid",
43-
"bundlePath"
43+
"bundle"
4444
]
4545
}

specs-go/state.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ type State struct {
66
Version string `json:"ociVersion"`
77
// ID is the container ID
88
ID string `json:"id"`
9-
// Status is the runtime state of the container.
9+
// Status is the runtime status of the container.
1010
Status string `json:"status"`
1111
// Pid is the process ID for the container process.
1212
Pid int `json:"pid"`
13-
// BundlePath is the path to the container's bundle directory.
14-
BundlePath string `json:"bundlePath"`
15-
// Annotations are the annotations associated with the container.
13+
// Bundle is the path to the container's bundle directory.
14+
Bundle string `json:"bundle"`
15+
// Annotations are key values associated with the container.
1616
Annotations map[string]string `json:"annotations,omitempty"`
1717
}

0 commit comments

Comments
 (0)