-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search for k8s containers by name, not position in array. (#2983)
It is not necessarily true that the items in ContainerStatuses are in the same order as those in Spec.Containers, so the old logic was wrong. container names _are_ unique within a pod, so we can find the container in the spec for a given ID based on its name.
- Loading branch information
1 parent
3b6e8ef
commit 1c8646b
Showing
1 changed file
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters