Plugin select deployment using replicaset name

This commit is contained in:
Alex Kursell 2019-04-01 17:15:43 -04:00
parent b87cc5a1a6
commit 7c6b2a1566
2 changed files with 21 additions and 1 deletions

View file

@ -253,7 +253,7 @@ func getDeploymentPods(flags *genericclioptions.ConfigFlags, deployment string)
ingressPods := make([]apiv1.Pod, 0)
for _, pod := range pods {
if pod.Spec.Containers[0].Name == deployment {
if util.PodInDeployment(pod, deployment) {
ingressPods = append(ingressPods, pod)
}
}