-
Notifications
You must be signed in to change notification settings - Fork 949
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 CriEnabled field in api and show this in cli #1918
feature: add CriEnabled field in api and show this in cli #1918
Conversation
a6fcec4
to
ebbd0d1
Compare
Codecov Report
@@ Coverage Diff @@
## master #1918 +/- ##
==========================================
+ Coverage 62.8% 62.81% +<.01%
==========================================
Files 200 200
Lines 15567 15568 +1
==========================================
+ Hits 9777 9779 +2
- Misses 4544 4545 +1
+ Partials 1246 1244 -2
|
test/z_cli_daemon_test.go
Outdated
"--enable-cri") | ||
c.Assert(err, check.IsNil) | ||
|
||
// Check pull image with default registry using the registry specified in daemon. |
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.
This comment is not appropriate 😄
LGTM, except the minor issue mentioned above :) |
Signed-off-by: Allen Sun <[email protected]>
ebbd0d1
to
b135c2f
Compare
Thanks for your review. @YaoZengzeng |
LGTM. |
Signed-off-by: Allen Sun [email protected]
Ⅰ. Describe what this PR did
In daemon's API side, we need to provide a user-friendly way for user to check if the pouchd is opening for CRI part.
Otherwise, user can only use
ps aux | grep pouchd | grep cri-enable
to check, which is quite inconvenient. In addition, if a pouch client can only access pouchd remotely, no info can be gotten with this way. So, I think we need to add CriEnabled field in api and show this in cli.Ⅱ. Does this pull request fix one issue?
fixes #1908
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
execute
pouch info
, you will seeCriEnabled: false
if no cri-enabled, otherwise, true.Ⅴ. Special notes for reviews
none