-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
update createSandboxContainer to parse hugepages limits from CRI message #2940
update createSandboxContainer to parse hugepages limits from CRI message #2940
Conversation
Hi @bg-chun. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
Hi @bg-chun. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## master #2940 +/- ##
==========================================
- Coverage 46.35% 46.33% -0.02%
==========================================
Files 89 89
Lines 7346 7349 +3
==========================================
Hits 3405 3405
- Misses 3639 3642 +3
Partials 302 302 |
/ok-to-test Thanks, @bg-chun 🙏 |
@bg-chun We need to update cri api in go.mod for pulling in the proto changes. Thanks! |
I will update pr after CRI pr merged on kubernetes. |
server/container_create_linux.go
Outdated
@@ -491,6 +491,13 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID, contai | |||
specgen.SetProcessOOMScoreAdj(int(resources.GetOomScoreAdj())) | |||
specgen.SetLinuxResourcesCPUCpus(resources.GetCpusetCpus()) | |||
specgen.SetLinuxResourcesCPUMems(resources.GetCpusetMems()) | |||
|
|||
hugepageLimits := resources.GetHugepageLimits() | |||
if len(hugepageLimits) != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the if len(hugepageLimits) != 0
check redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes remove this the range command below will handle this situation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
7e98586
to
0019bc0
Compare
The description of PR has been updated :) |
update cri-api vendor to include hugepages changes KEP: kubernetes/enhancements#1199 CRI: kubernetes/kubernetes#83614 Signed-off-by: Byonggon Chun <bg.chun@samsung.com>
Signed-off-by: Byonggon Chun <bg.chun@samsung.com>
0019bc0
to
1c28b23
Compare
Looks fine to me. @saschagrunert you want to check the dependency update here? |
@mrunalp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bg-chun, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bg-chun, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
The purpose of this PR
History
The Detail of CRI Update
hugepage_limits
), it is able to express list of hugepage configuration.HugepageLimit
) expesss hugepage limit per page size.