feat: add discovery k8s dump data interface#11111
Conversation
|
Test cases are also needed. |
|
I have not find a k8s mock apiserver like one in the test case |
|
@shreemaan-abhishek ,Thanks , I have found the method build k8s test env in workflows/kubernetes-ci.yml . |
| --- more_headers | ||
| Content-type: application/json | ||
| --- response_body_like | ||
| .*"endpoints".* |
There was a problem hiding this comment.
--- response_body_like
.*"endpoints".*
this doesn't seem sufficient to show that the feature works fine. The verification should be more descriptive.
|
@hanqingwu should we add docs as well? Also, could you please show how the response body looks like? |
|
yes, we should add docs |
|
Please add docs then. |
| ### Memory Dump API | ||
|
|
||
| ```shell | ||
| GET /v1/discovery/kubernetes/dump |
There was a problem hiding this comment.
| GET /v1/discovery/kubernetes/dump | |
| curl http://127.0.0.1:9090/v1/discovery/kubernetes/dump | jq |
Description
Fix: #11057
Checklist