Init Kubelet runtime cache before dependent stats provider#62544
Init Kubelet runtime cache before dependent stats provider#62544k8s-ci-robot merged 1 commit intokubernetes:masterfrom
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 DetailsIn 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 |
|
/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 DetailsNeeds 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