Skip to content

Conversation

@Mashimiao
Copy link

According to spec, there is a limit of 5 mappings which is the Linux kernel hard limit.

Signed-off-by: Ma Shimiao [email protected]

According to spec, there is a limit of 5 mappings which
is the Linux kernel hard limit.

Signed-off-by: Ma Shimiao <[email protected]>
@Mashimiao Mashimiao force-pushed the schema-add-limit-for-idmappings branch from 4342fe4 to 96ba58a Compare February 14, 2017 07:35
@hqhq
Copy link
Contributor

hqhq commented Feb 17, 2017

LGTM

Approved with PullApprove

@mrunalp
Copy link
Contributor

mrunalp commented Feb 17, 2017

I am not sure if we want to add a check like this that is too tied to the kernel limit. The kernel could change the limit in the future. We can let the runtimes check or fail if the limit is exceeded. That said, I wouldn't oppose if other maintainers think that this is okay to add.

@crosbymichael
Copy link
Member

@mrunalp i've been against the validation of values that are based on the host system.

I think its a bad idea, sets us up for issues and hotfixes down the road when the underlying hosts change and our values are no longer correct, and the simple fact that this does not belong in the spec because they host specific values that can differ.

You cannot enforce these things using static validation because we are not the ones setting the rules/limits for these values.

@wking
Copy link
Contributor

wking commented Feb 17, 2017 via email

@hqhq
Copy link
Contributor

hqhq commented Feb 18, 2017

I agree we should not have such limit which depends on kernel, I pushed a commit #693 .

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.

5 participants