Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 2062266: removing duplicate pods in logs list and fixing bug 2062266 partially #1301

Merged
merged 1 commit into from May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion pkg/controller/discovery/web/plan.go
Expand Up @@ -1574,7 +1574,16 @@ func (p *PlanPods) buildPods(h *PlanHandler, ref *v1.ObjectReference) ([]PlanPod
for _, model := range podModels {
pod := PlanPod{}
pod.With(model, &cluster)
pods = append(pods, pod)
present := false
for _, p := range pods {
if p.Name == pod.Name {
present = true
break
}
}
if !present {
pods = append(pods, pod)
}
}
}

Expand Down