Skip to content

fixup! config-linux: Refined JSON definitions for RDMA limits - #1

Merged
paravmellanox merged 1 commit into
paravmellanox:masterfrom
wking:rdma-fixups
Jan 24, 2018
Merged

fixup! config-linux: Refined JSON definitions for RDMA limits#1
paravmellanox merged 1 commit into
paravmellanox:masterfrom
wking:rdma-fixups

Conversation

@wking

@wking wking commented Jan 24, 2018

Copy link
Copy Markdown

In case this is an easier way for me to make suggestions for opencontainers#942. If these changes look good, you can squash them into your master branch.

@paravmellanox paravmellanox left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed HugepageLimits naming style to reflect as 'RdmaLimits' instead of 'Rdma'.

@wking

wking commented Jan 24, 2018 via email

Copy link
Copy Markdown
Author

@paravmellanox

Copy link
Copy Markdown
Owner

Ah I get now.
You are right.
So lets have:
LinuxResources.RdmaLimits as Go property
"rdmaLimits" as JSON property.

This aligns with hugepages naming convention well.

additionalProperties is defined for the JSON Schema draft-04 in [1]
with clearer documentation in draft-07 [2].  It is supportd by
gojsonschema since xeipuuv/gojsonschema@0572d9d (added
additionalProperties with inner schema, 2013-06-21).

[1]: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.4.4
[2]: https://tools.ietf.org/html/draft-handrews-json-schema-validation-00#section-6.5.6

Signed-off-by: W. Trevor King <wking@tremily.us>
@wking

wking commented Jan 24, 2018 via email

Copy link
Copy Markdown
Author

@paravmellanox
paravmellanox merged commit 18ff08c into paravmellanox:master Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants