From bb284edee8dfc3a5c472d14bc7d874431378bcf0 Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Fri, 6 May 2016 18:17:32 +0100 Subject: [PATCH] set 'default' as the default namespace filter instead of 'all' (#1445) --- app/api_topologies.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api_topologies.go b/app/api_topologies.go index ee02ad3eb..625cb1335 100644 --- a/app/api_topologies.go +++ b/app/api_topologies.go @@ -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})