Skip to content

Commit

Permalink
Merge pull request #2670 from weaveworks/mike/k8s/controller-view/no-…
Browse files Browse the repository at this point in the history
…type-filter

Remove type filter in controllers view
  • Loading branch information
ekimekim authored Jun 30, 2017
2 parents 02de947 + c521b50 commit e65c80d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions app/api_topologies.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,6 @@ func MakeRegistry() *Registry {
},
}

k8sControllersTypeFilter := APITopologyOptionGroup{
ID: "grouptype",
Default: "",
SelectType: "union",
NoneLabel: "All Types",
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},
},
}

// Topology option labels should tell the current state. The first item must
// be the verb to get to that state
registry.Add(
Expand Down Expand Up @@ -258,7 +247,7 @@ func MakeRegistry() *Registry {
parent: podsID,
renderer: render.FilterUnconnectedPseudo(render.KubeControllerRenderer),
Name: "controllers",
Options: []APITopologyOptionGroup{unmanagedFilter, k8sControllersTypeFilter},
Options: []APITopologyOptionGroup{unmanagedFilter},
HideIfEmpty: true,
},
APITopologyDesc{
Expand Down

0 comments on commit e65c80d

Please sign in to comment.