Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/store: fix metrics slice length
Problem: In #1723 a potential panic in the pod metrics gathering was fixed by working around a disconnect of `Spec.Containers` and `Status.ContainerStatuses`. The slice storing the resulting metrics however was still defined based on the length of the `Status.ContainerStatuses` list. Solution: Make the slice dynamic and append metrics to it. Signed-off-by: Jan Fajerski <[email protected]>
- Loading branch information