-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix verbs reporting in kube-apiserver metrics #93523
Fix verbs reporting in kube-apiserver metrics #93523
Conversation
looks good from instrumentation side /lgtm |
8b000ff
to
1406317
Compare
@brancz - updated the canonicalVerb function to fix a valid unit test issue (previously it wasn't used in MonitorRequest at all) |
Seems like unrelated error in controller-manager. /retest |
if !validRequestMethods.Has(verb) { | ||
verb = OtherRequestMethod | ||
} |
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.
I think we still need this bit actually. This was put in place due to a security vulnerability.
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.
There is no comment to that effect because it was patched prior to the embargo being lifted, but we should probably add a comment here.
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.
cleanVerb is doing that - it's no longer needed after adding
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.
ah nice, i was thinking it may make sense to push that down.
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logicalhan, wojtek-t The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/remove-triage needs-information |
@fedebongio: Those labels are not set on the issue: In response to this:
Instructions 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/test-infra repository. |
/test pull-kubernetes-e2e-kind-ipv6 |
Ref #81660 (comment)
/assign @smarterclayton
/kind bug