Add new Renderer type to include full node data without changing node set

The nodes returned from Map2Parent are mostly empty, and need joining with their full topologies
before being useful. But we want to filter out any nodes that weren't already in the graph.

We make a new Renderer type to implement this.
We also add the missing types to the type option group
This commit is contained in:
Mike Lang
2017-05-31 18:50:05 -07:00
parent b37ef3a239
commit 87a2655e67
3 changed files with 52 additions and 7 deletions
+2
View File
@@ -204,6 +204,8 @@ func MakeRegistry() *Registry {
Options: []APITopologyOption{
{Value: report.Deployment, Label: "Deployments", filter: render.IsTopology(report.Deployment), filterPseudo: false},
{Value: report.DaemonSet, Label: "Daemonsets", filter: render.IsTopology(report.DaemonSet), filterPseudo: false},
{Value: report.ReplicaSet, Label: "Replica sets", filter: render.IsTopology(report.ReplicaSet), filterPseudo: false},
{Value: report.Pod, Label: "Pods", filter: render.IsTopology(report.Pod), filterPseudo: false},
},
}