mirror of https://github.com/linkerd/linkerd2.git
Fix 'linkerd dg proxy-metrics'
This commit is contained in:
parent
f8f73c47c7
commit
7359f371dc
|
@ -43,7 +43,8 @@ func getAllContainersWithPort(
|
|||
}
|
||||
var containers []corev1.Container
|
||||
|
||||
for _, c := range pod.Spec.Containers {
|
||||
allContainers := append(pod.Spec.InitContainers, pod.Spec.Containers...)
|
||||
for _, c := range allContainers {
|
||||
for _, p := range c.Ports {
|
||||
if p.Name == portName {
|
||||
containers = append(containers, c)
|
||||
|
|
Loading…
Reference in New Issue