File tree Expand file tree Collapse file tree 5 files changed +58
-9
lines changed Expand file tree Collapse file tree 5 files changed +58
-9
lines changed Original file line number Diff line number Diff line change 8989 "id" : " https://opencontainers.org/schema/bundle/linux/resources/pids/limit" ,
9090 "$ref" : " defs.json#/definitions/int64"
9191 }
92- }
92+ },
93+ "required" : [
94+ " limit"
95+ ]
9396 },
9497 "blockIO" : {
9598 "id" : " https://opencontainers.org/schema/bundle/linux/resources/blockIO" ,
222225 "limit" : {
223226 "$ref" : " defs.json#/definitions/uint64"
224227 }
225- }
228+ },
229+ "required" : [
230+ " pageSize" ,
231+ " limit"
232+ ]
226233 }
227234 },
228235 {
Original file line number Diff line number Diff line change 5959 "description" : " Configures the container's root filesystem." ,
6060 "id" : " https://opencontainers.org/schema/bundle/root" ,
6161 "type" : " object" ,
62+ "required" : [
63+ " path"
64+ ],
6265 "properties" : {
6366 "path" : {
6467 "id" : " https://opencontainers.org/schema/bundle/root/path" ,
8285 "id" : " https://opencontainers.org/schema/bundle/process/args" ,
8386 "$ref" : " defs.json#/definitions/ArrayOfStrings"
8487 },
88+ "consoleSize" : {
89+ "id" : " https://opencontainers.org/schema/bundle/process/consoleSize" ,
90+ "type" : " object" ,
91+ "required" : [
92+ " height" ,
93+ " width"
94+ ],
95+ "properties" : {
96+ "height" : {
97+ "id" : " https://opencontainers.org/schema/bundle/process/consoleSize/height" ,
98+ "$ref" : " defs.json#/definitions/unit64"
99+ },
100+ "width" : {
101+ "id" : " https://opencontainers.org/schema/bundle/process/consoleSize/width" ,
102+ "$ref" : " defs.json#/definitions/unit64"
103+ }
104+ }
105+ },
85106 "cwd" : {
86107 "id" : " https://opencontainers.org/schema/bundle/process/cwd" ,
87108 "type" : " string"
171192 " platform" ,
172193 " process" ,
173194 " root" ,
174- " mounts" ,
175- " hooks"
195+ " mounts" ,
196+ " hooks"
176197 ]
177198}
Original file line number Diff line number Diff line change 106106 },
107107 "Device" : {
108108 "type" : " object" ,
109+ "required" : [
110+ " type" ,
111+ " path" ,
112+ " major" ,
113+ " minor"
114+ ],
109115 "properties" : {
110116 "type" : {
111117 "$ref" : " #/definitions/FileType"
249255 "access" : {
250256 "$ref" : " defs.json#/definitions/stringPointer"
251257 }
252- }
258+ },
259+ "required" : [
260+ " allow"
261+ ]
253262 },
254263 "NetworkInterfacePriority" : {
255264 "type" : " object" ,
260269 "priority" : {
261270 "$ref" : " defs.json#/definitions/uint32"
262271 }
263- }
272+ },
273+ "required" : [
274+ " name" ,
275+ " priority"
276+ ]
264277 },
265278 "NamespaceType" : {
266279 "type" : " string" ,
283296 "path" : {
284297 "$ref" : " defs.json#/definitions/FilePath"
285298 }
286- }
299+ },
300+ "required" : [
301+ " type"
302+ ]
287303 }
288304 }
289305}
Original file line number Diff line number Diff line change 163163 "size" : {
164164 "$ref" : " #/definitions/uint32"
165165 }
166- }
166+ },
167+ "required" : [
168+ " hostID" ,
169+ " containerID" ,
170+ " size"
171+ ]
167172 },
168173 "Mount" : {
169174 "type" : " object" ,
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ type State struct {
1313 // BundlePath is the path to the container's bundle directory.
1414 BundlePath string `json:"bundlePath"`
1515 // Annotations are the annotations associated with the container.
16- Annotations map [string ]string `json:"annotations"`
16+ Annotations map [string ]string `json:"annotations,omitempty "`
1717}
You can’t perform that action at this time.
0 commit comments