-
Notifications
You must be signed in to change notification settings - Fork 950
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
feature: sysctl configuration for both cri manager and container manager #654
Conversation
@allencloud already passed corresponding CRI test. @Letty5411 PTAL. |
Codecov Report
@@ Coverage Diff @@
## master #654 +/- ##
=========================================
Coverage ? 10.61%
=========================================
Files ? 70
Lines ? 3277
Branches ? 0
=========================================
Hits ? 348
Misses ? 2890
Partials ? 39
Continue to review full report at Codecov.
|
@allencloud already add the CRI related tests into CI. |
@YaoZengzeng CI fails with gofmt error:
|
Please also add a |
cli/container.go
Outdated
for _, sysctl := range sysctls { | ||
fields := strings.SplitN(sysctl, "=", 2) | ||
if len(fields) != 2 { | ||
return nil, fmt.Errorf("invalid sysctl: %s", sysctl) |
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.
Could you provide more invalid reasons? @YaoZengzeng
I think here we tell user the invalidness of input, but we have not told them why it is invalid which will increase his confusion and time in finding ways to solve this. Maybe more time for us to support these cases. But if we add the invalid reasons. It may reduce much potential work no matter in developing or supporting. How about the format fmt.Errorf("invalid sysctl %s: sysctl must be in format of key=value", sysctl)
.
I have to say many places have the same issue. While we need to improve that places. In addition, I think we need to update the cli flag illustration as well, since they are not so readable for users. We code them just in developer's perspectives.
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.
@allencloud can't agree more.
Signed-off-by: YaoZengzeng <[email protected]>
@allencloud @Letty5411 updated. |
LGTM |
Signed-off-by: YaoZengzeng [email protected]
1.Describe what this PR did
2.Does this pull request fix one issue?
fixes part of #635
3.Describe how you did it
4.Describe how to verify it
5.Special notes for reviews