Skip to content

Conversation

@wking
Copy link
Contributor

@wking wking commented Nov 3, 2017

This isn't a question of not being implemented yet. Windows does not, and is unlikely to ever, support rlimits. And the spec only defines process.rlimits for POSIX platforms. Folks writing Windows configs will only be setting process.rlimits as an out-of-spec extention. We, as runtime validators, are unlikely to write such configs. But if we use runtimetest in a container launched from such a config, we should silently ignore that out-of-spec extention, just like we silently ignore all other out-of-spec extentions, instead of logging a warning.

Previous discussion of this issue in the config-validation context here.

This isn't a question of not being implemented yet.  Windows does not,
and is unlikely to ever, support rlimits [1].  And the spec only
defines process.rlimits for POSIX platforms [2].  Folks writing
Windows configs will only be setting process.rlimits as an out-of-spec
extention.  We, as runtime validators, are unlikely to write such
configs.  But if we use runtimetest in a container launched from such
a config, we should silently ignore that out-of-spec extention, just
like we silently ignore all other out-of-spec extentions, instead of
logging a warning.

[1]: opencontainers/runtime-spec#835 (comment)
[2]: https://github.com/opencontainers/runtime-spec/blob/v1.0.0/config.md#posix-process

Signed-off-by: W. Trevor King <[email protected]>
@Mashimiao
Copy link

Mashimiao commented Nov 6, 2017

LGTM

Approved with PullApprove

1 similar comment
@zhouhao3
Copy link

zhouhao3 commented Nov 6, 2017

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit 801e6fd into opencontainers:master Nov 6, 2017
@wking wking deleted the remove-rlimits-windows-warning branch November 7, 2017 04:39
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.

3 participants