-
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: add a flag of pouchd to specify whether enable CRI #1118
feature: add a flag of pouchd to specify whether enable CRI #1118
Conversation
9b943da
to
e1d3c47
Compare
daemon/config/config.go
Outdated
@@ -22,6 +22,9 @@ type Config struct { | |||
// Network config | |||
NetworkConfg network.Config | |||
|
|||
// Whether enable cri manager. | |||
CriEnabled bool |
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.
Please add a json name for this field, since it will also be included in the config file which in json, like json:"home-dir,omitempty"
.
Codecov Report
@@ Coverage Diff @@
## master #1118 +/- ##
========================================
+ Coverage 15.8% 16.7% +0.9%
========================================
Files 171 165 -6
Lines 9619 8931 -688
========================================
- Hits 1520 1492 -28
+ Misses 7989 7334 -655
+ Partials 110 105 -5
|
@allencloud PTAL |
daemon/config/config.go
Outdated
@@ -22,6 +22,9 @@ type Config struct { | |||
// Network config | |||
NetworkConfg network.Config | |||
|
|||
// Whether enable cri manager. | |||
CriEnabled bool `json:"cri-enabled,omitempty"` |
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.
I am afraid this field addition introduces some compatibility.
I see two similar fields:
CriEnabled bool `json:"cri-enabled,omitempty"`
IsLxcfsEnabled bool `json:"enable-lxcfs,omitempty"`
They are quite similar and have different. Could we change into IsCriEnabled bool
json:"enable-cri,omitempty"``
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.
Can't agree more :) be in consistent !
Signed-off-by: YaoZengzeng <[email protected]>
Thanks for your work. @YaoZengzeng |
Signed-off-by: YaoZengzeng [email protected]
Ⅰ. Describe what this PR did
With this PR, the CRI service of pouch will be off by default.
If we want to enable it, we could start pouchd like:
Ⅱ. Does this pull request fix one issue?
fixes #1114
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews