-
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
[RFC] CRI: Add daemon configuration to StatusResponse as extra information #2589
Conversation
StatusResponse in CRI returns runtime extra information which is in the map of Info. Now there is only one key in this map. This patch add "daemon-config" as another key and its value is the daemon configuration in json format. With this patch, for example, we can get pouch root dir from StatusResponse. Signed-off-by: Wang Rui <baijia.wr@antfin.com>
Codecov Report
@@ Coverage Diff @@
## master #2589 +/- ##
==========================================
- Coverage 69.18% 69.04% -0.15%
==========================================
Files 278 278
Lines 18689 18694 +5
==========================================
- Hits 12930 12907 -23
- Misses 4285 4305 +20
- Partials 1474 1482 +8
|
Just at my first glance of this, I am wondering if we need any test to cover this part ? @zjumoon01 @zhuangqh @starnop |
have a deep discussion of this proposal with @zjumoon01 offline. |
we could update the runtime info testcase here https://github.com/alibaba/cri-tools/blob/release-1.12/pkg/validate/runtime_info.go#L40 |
At my second glance, I didn't see where the test case for Status CRI is. Do you mean add test in alibaba/cri-tools project ? |
LGTM. |
StatusResponse in CRI returns runtime extra information which is in
the map of Info. Now there is only one key in this map. This patch
add "daemon-config" as another key and its value is the daemon
configuration in json format. With this patch, for example, we can
get pouch root dir from StatusResponse.
Signed-off-by: Wang Rui baijia.wr@antfin.com
Ⅰ. Describe what this PR did
User could get pouch root dir by StatusResponse in CRI with this patch.
This patch add a new key "daemon-config" to StatusResponse.Info . A lot of extra information can be found in info["daemon-config"].
Ⅱ. Does this pull request fix one issue?
It fix the proposal #2568
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews