forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
containerstate-v1.json
98 lines (98 loc) · 3.11 KB
/
containerstate-v1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
"properties": {
"running": {
"description": "ContainerStateRunning is a running state of a container.",
"properties": {
"startedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"terminated": {
"description": "ContainerStateTerminated is a terminated state of a container.",
"required": [
"exitCode"
],
"properties": {
"containerID": {
"description": "Container's ID in the format 'docker://<container_id>'",
"type": [
"string",
"null"
]
},
"exitCode": {
"description": "Exit status from the last termination of the container",
"type": "integer",
"format": "int32"
},
"finishedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"message": {
"description": "Message regarding the last termination of the container",
"type": [
"string",
"null"
]
},
"reason": {
"description": "(brief) reason from the last termination of the container",
"type": [
"string",
"null"
]
},
"signal": {
"description": "Signal from the last termination of the container",
"type": "integer",
"format": "int32"
},
"startedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"waiting": {
"description": "ContainerStateWaiting is a waiting state of a container.",
"properties": {
"message": {
"description": "Message regarding why the container is not yet running.",
"type": [
"string",
"null"
]
},
"reason": {
"description": "(brief) reason the container is not yet running.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}