-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Init Kubelet runtime cache before dependent stats provider #62544
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
Conversation
/assign Random-Liu |
/ok-to-test |
/retest |
/uncc |
/lgtm This seems like a fairly straightforward case of "don't try pass a field before actually setting it" |
@Random-Liu @derekwaynecarr any chance to merge it? |
ping |
/milestone 1.12 @kubernetes/sig-node-bugs we probably want to merge this before code freeze since it just straight-up breaks metrics, so I'm adding it to the milestone since it's just sat here without any triage for a while |
@DirectXMan12: The provided milestone is not valid for this repository. Milestones in this repository: [ Use 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. |
/milestone v1.12 |
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
/lgtm Not sure how the tests missed this... |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: astefanutti, DirectXMan12, feiskyer, yujuhong 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 |
We don't have tests for those endpoints... I plan to deprecate and remove this endpoint in the future, but we should fix it for now. We should cherry-pick this back to 1.9 as well |
We need to cherry-pick this to all supported branch. The bug was introduced in 1.8... |
1.8 is unsupported now so we'd need to cherry pick this into 1.9 to 1.12. |
/test all |
What this PR does / why we need it:
This PR makes sure the kubelet runtime cache is initiated before the stats providers, that depend on it.
Nil pointer dereference occurs when accessing the container stats via the Kubelet API, using the
/{namespace}/{podName}/{uid}/{containerName}
path, that returns 503 as a result:Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #56297
Release note:
/sig instrumentation