Skip to content

Conversation

@zhouhao3
Copy link

Signed-off-by: zhouhao [email protected]

Copy link
Contributor

@wking wking left a comment

Choose a reason for hiding this comment

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

The other changes (requiring type/soft/hard and not requiring mounts) look good to me.

"type": "object",
"required": [
"uid",
"gid"
Copy link
Contributor

Choose a reason for hiding this comment

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

We can't add this to the JSON Schema, because they're only required on Linux. Windows entries will not have them.

Copy link
Author

Choose a reason for hiding this comment

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

That being the case, should the user field should be removed from the config-schema, into different types(config-linux.json/config-windows.json etc).

Copy link
Contributor

Choose a reason for hiding this comment

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

should the user field should be removed from the config-schema, into different types (config-linux.json/config-windows.json etc).

You could do that if you like, but I don't think it's worth the trouble. I'd rather leave the user fields optional in the JSON Schema and check for any platform-specific requirements in runtime-tools' Go validation.

@crosbymichael
Copy link
Member

crosbymichael commented Feb 27, 2017

LGTM

Approved with PullApprove

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Feb 27, 2017

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit fb76f47 into opencontainers:master Feb 27, 2017
@zhouhao3 zhouhao3 deleted the json-fix branch February 28, 2017 01:18
@vbatts vbatts mentioned this pull request Mar 6, 2017
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.

4 participants