Remove terminated pod from summary api. #77426
I found this when debugging a containerd test failure introduced after #77101 (comment).
In some cases, we may have pod stats with the same name and namespace today:
This only happens to the CRI integration, because we return stats for terminated containers from CRI. To keep the behavior of summary api consistent with before, we should filter out those terminated pods.
Or else, this may break metrics which only use labels
Errors like this will be returned when querying metrics:
There are 2 metrics affected by this:
Signed-off-by: Lantao Liu firstname.lastname@example.org
What type of PR is this?
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Random-Liu
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
This should hopefully address a number of failure clusters that have cropped up in the past week: