feat: Add flagz endpoint for kubelet#128857
Conversation
|
Hi @zhifei92. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/hold Waiting for PR #128811, which depends on the included |
|
/sig instrumentation |
|
Hello @zhifei92 is this PR still WIP? |
9e0d199 to
b9fc3df
Compare
@richabanker Hi, it is now ready for review. |
|
/ok-to-test |
|
/retest-required |
9d01d37 to
92ae41a
Compare
|
@tallclair @vinayakankugoyal Are there any other issues? |
| tp oteltrace.TracerProvider) { | ||
| klog.InfoS("Starting to listen read-only", "address", address, "port", port) | ||
| s := NewServer(host, resourceAnalyzer, checkers, nil, nil) | ||
| s := NewServer(host, resourceAnalyzer, checkers, flagz, nil, nil) |
There was a problem hiding this comment.
nit: you can just pass nil here and drop the function parameter since it's never served by the readonly server.
|
LGTM label has been added. DetailsGit tree hash: 4e194eeeda1296a4b23f6e46faf7eb6eb58404da |
Fix: Move flagz to InstallDebuggingHandlers. Move flagz to the lower switch statemen Fix linter Drop the function parameter for the read-only server.
|
/cc @haircommander @SergeyKanzhelev for approve. Please take a look. thx~ |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richabanker, tallclair, zhifei92 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@richabanker @tallclair Need lgtm again. |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 1115cbcfaa33fc1bf19f9e2d8cac97e73b18bf37 |
|
/unhold |
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
|
@zhifei92: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test pull-kubernetes-e2e-kind-ipv6 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a /flagz endpoint for kubelet
part of kubernetes/enhancements#4828
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
KEP : https://github.com/kubernetes/enhancements/blob/master/keps/sig-instrumentation/4828-component-flagz/README.md
kubectl get --raw "/api/v1/nodes/{nodename}/proxy/flagz"