W. Trevor King
092743727e
schema: Drop pointers and nulls
...
Maintainers feel (and I agree) that there's no point in explicitly
allowing a null value when callers can simply leave the property unset
[1]. This commit removes all references to "pointer" and "null" from
the JSON Schema to support that decision. While optional properties
may sometimes be represented as pointer types in Go [2], optional
properties should be represented in JSON Schema by not including the
properties in the 'required' array.
[1]: https://github.com/opencontainers/runtime-spec/pull/555#issuecomment-272020515
[2]: style.md "Optional settings should not have pointer Go types"
Signed-off-by: W. Trevor King <wking@tremily.us>
2017-01-23 11:23:44 -08:00
Michael Crosby
d5a1269c87
Merge pull request #545 from Mashimiao/fix-blockio-related-validation
...
fix blkio related validation
2017-01-23 10:32:27 -08:00
Ma Shimiao
1b3e2c7f26
schema: fix invalid string reference
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2017-01-23 11:49:22 +08:00
Vincent Batts
dc0fa75942
Merge pull request #655 from Mashimiao/schema-fix-with-latest-spec
...
schema: fix items based on latest spec
2017-01-18 17:29:21 -05:00
W. Trevor King
83200898a1
schema: Remove string pointers
...
Catch up with 868e6310
(Remove string pointers, 2017-01-12, #653 ).
Signed-off-by: W. Trevor King <wking@tremily.us>
2017-01-13 07:09:36 -08:00
Ma Shimiao
5076439d49
schema: fix items based on latest spec
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2017-01-13 13:59:16 +08:00
Ma Shimiao
58832f9148
config-linux: remove unneeded null for array
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2017-01-12 14:59:40 +08:00
Ma Shimiao
a04cce97ea
fix blkio related validation
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2017-01-12 14:56:27 +08:00
Mrunal Patel
a3dd52f583
Merge pull request #646 from q384566678/json-test
...
Perfect json content
2017-01-11 14:24:24 -08:00
zhouhao
2d5e0df2f0
Perfect json content
...
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2017-01-06 10:34:38 +08:00
Qiang Huang
082e93a2bd
Allow negative value for some resource fields
...
Carry #499
For these values, cgroup kernal APIs accept -1 to set
them as unlimited, as docker and runc all support
update resources, we should not set drawbacks in spec.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2017-01-05 19:03:57 +08:00
W. Trevor King
90be62f150
schema: Run 'make fmt'
...
This should probably be part of our CI testing.
Signed-off-by: W. Trevor King <wking@tremily.us>
2016-08-30 15:46:26 -07:00
Mrunal Patel
b860409a5a
Merge pull request #546 from Mashimiao/seccomp-remove-unneeded-item
...
remove unneeded item from seccomp
2016-08-30 15:43:59 -07:00
Ma Shimiao
60672c0b3c
add devices for resources and DeviceCgroup
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2016-08-30 13:31:01 +08:00
Ma Shimiao
7d22f1c244
remove unneeded item from seccomp
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2016-08-29 15:33:23 +08:00
Haiyan Meng
da3b96e996
Add missing `"type": "object"`
...
Signed-off-by: Haiyan Meng <haiyanalady@gmail.com>
2016-08-10 17:14:25 -04:00
W. Trevor King
59ede1a6ac
schema: Move schema.json -> config-schema.json and similar
...
To make it clear that these schemas are for validating config.json
(and not, for example, state JSON). I've left the IDs alone for now,
because my PR adjusting those was rejected [1].
The rule for the -schema portion is "use it for entrypoint files" [2].
[1]: https://github.com/opencontainers/runtime-spec/pull/453
[2]: https://github.com/opencontainers/runtime-spec/pull/481#issuecomment-223641814
Signed-off-by: W. Trevor King <wking@tremily.us>
2016-06-08 20:43:06 -07:00