feat: Add flagz endpoint for kube-proxy#128985
feat: Add flagz endpoint for kube-proxy#128985k8s-ci-robot merged 1 commit intokubernetes:masterfrom
Conversation
|
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
|
/sig instrumentation |
|
For context @danwinship I talked offline with the author and in kube-proxy we found three options:
/assign @danwinship |
|
cc @Henrywu573 |
|
Is there not a standard for this in other components? |
|
@danwinship Thanks for the comment. There are PRs created for other components. I'm also using metrics' IP there. |
|
/release-note-edit |
94a73be to
3f3c824
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 3ce5fe93157743d31a0a260a619d4cbac3966813 |
|
/retest |
| if flagzReader != nil { | ||
| s.flagz = flagzReader | ||
| } | ||
| } |
There was a problem hiding this comment.
You don't need to check the feature gate here; flagzReader can only have been set if the feature gate is enabled.
(So you don't even need this as a separate section; you can just unconditionally set flags: flagzReader in the initial creation of the ProxyServer at the top of the function)
There was a problem hiding this comment.
Updated. thanks!
|
|
||
| if utilfeature.DefaultFeatureGate.Enabled(zpagesfeatures.ComponentFlagz) { | ||
| if flagzReader != nil { | ||
| flagz.Install(proxyMux, "kube-proxy", flagzReader) |
There was a problem hiding this comment.
likewise, you don't need to check the feature gate here (though in this case you do still need the nil check)
3f3c824 to
cfc92c7
Compare
cfc92c7 to
ebb02bb
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 4e0cdd553b6406635880fefb583b1f80d94fb537 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danwinship, yongruilin 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #128984 and kubernetes/enhancements#4828
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
Example response: