set 'default' as the default namespace filter instead of 'all' (#1445)

This commit is contained in:
Paul Bellamy
2016-05-06 18:17:32 +01:00
committed by Tom Wilkie
parent 90f2f7f621
commit bb284edee8

View File

@@ -123,6 +123,9 @@ func init() {
func kubernetesFilters(namespaces ...string) APITopologyOptionGroup {
options := APITopologyOptionGroup{ID: "namespace", Default: "all"}
for _, namespace := range namespaces {
if namespace == "default" {
options.Default = namespace
}
options.Options = append(options.Options, APITopologyOption{namespace, namespace, render.IsNamespace(namespace)})
}
options.Options = append(options.Options, APITopologyOption{"all", "All Namespaces", nil})