Skip to content

Commit

Permalink
Merge pull request #2682 from weaveworks/2681-image-counts
Browse files Browse the repository at this point in the history
don't show container count in host detail panel image list

Fixes #2681.
  • Loading branch information
rade authored Jul 5, 2017
2 parents fd4f1f9 + 0f4d17d commit d22d9d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 6 additions & 8 deletions render/detailed/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ var nodeSummaryGroupSpecs = []struct {
topologyID: report.Pod,
NodeSummaryGroup: NodeSummaryGroup{
Label: "Pods",

Columns: []Column{
{ID: kubernetes.State, Label: "State"},
{ID: report.Container, Label: "# Containers", Datatype: "number"},
Expand All @@ -155,7 +154,8 @@ var nodeSummaryGroupSpecs = []struct {
{
topologyID: report.Container,
NodeSummaryGroup: NodeSummaryGroup{
Label: "Containers", Columns: []Column{
Label: "Containers",
Columns: []Column{
{ID: docker.CPUTotalUsage, Label: "CPU", Datatype: "number"},
{ID: docker.MemoryUsage, Label: "Memory", Datatype: "number"},
},
Expand All @@ -164,7 +164,8 @@ var nodeSummaryGroupSpecs = []struct {
{
topologyID: report.Process,
NodeSummaryGroup: NodeSummaryGroup{
Label: "Processes", Columns: []Column{
Label: "Processes",
Columns: []Column{
{ID: process.PID, Label: "PID", Datatype: "number"},
{ID: process.CPUUsage, Label: "CPU", Datatype: "number"},
{ID: process.MemoryUsage, Label: "Memory", Datatype: "number"},
Expand All @@ -174,11 +175,8 @@ var nodeSummaryGroupSpecs = []struct {
{
topologyID: report.ContainerImage,
NodeSummaryGroup: NodeSummaryGroup{
TopologyID: "containers-by-image",
Label: "Container Images",
Columns: []Column{
{ID: report.Container, Label: "# Containers", DefaultSort: true, Datatype: "number"},
},
Label: "Container Images",
Columns: []Column{},
},
},
}
Expand Down
6 changes: 2 additions & 4 deletions render/detailed/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ func TestMakeDetailedHostNode(t *testing.T) {
{
Label: "Container Images",
TopologyID: "containers-by-image",
Columns: []detailed.Column{
{ID: report.Container, Label: "# Containers", DefaultSort: true, Datatype: "number"},
},
Nodes: []detailed.NodeSummary{containerImageNodeSummary},
Columns: []detailed.Column{},
Nodes: []detailed.NodeSummary{containerImageNodeSummary},
},
},
Connections: []detailed.ConnectionsSummary{
Expand Down

0 comments on commit d22d9d0

Please sign in to comment.