Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Fixed Resource Viewer bug with missing pods #2280

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed Resource Viewer bug with missing pods
Signed-off-by: Milan Klanjsek <[email protected]>
  • Loading branch information
mklanjsek committed Apr 7, 2021
commit 11c914eabc3f93838553a9ec69fe82af9566e9fd
8 changes: 5 additions & 3 deletions internal/modules/workloads/detail_describer.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ _%s_
}

var objects []*unstructured.Unstructured
for _, pod := range cur.Pods().Items {
objects = append(objects, &pod)
pods := cur.Pods().Items

for i := 0; i < len(pods); i++ {
objects = append(objects, &pods[i])
}

rv, err := resourceviewer.Create(ctx, options.Dash, options.Queryer, objects...)
Expand Down Expand Up @@ -147,7 +149,7 @@ _%s_

func (d *DetailDescriber) createResponse(components ...component.Component) component.ContentResponse {
cr := component.ContentResponse{
Title: component.TitleFromString("Workload X"),
Title: component.TitleFromString(""),
Components: components,
}

Expand Down