Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complete container resources when create and update container #115

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

Garrybest
Copy link
Contributor

Signed-off-by: Garrybest garrybest@foxmail.com

Now we don't set CpusetMems when creating container and MemorySwap when updating container resources. So these parameters will not take effect when passing by CRI client.

Signed-off-by: Garrybest <garrybest@foxmail.com>
@afbjorklund
Copy link
Contributor

Seems like this was missed, when copying from dockershim:
kubernetes/kubernetes@0370768

@Garrybest
Copy link
Contributor Author

That's right.

BTW, we don't update MemorySwap when UpdateContainerResources, but MemorySwap is specified as same as Memory when CreateContainer. So this PR fixes all the missing parameters.

@evol262 evol262 merged commit 6731c51 into Mirantis:master Sep 8, 2022
@Garrybest Garrybest deleted the pr_resources branch September 9, 2022 01:24
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.

None yet

3 participants