mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
set 'default' as the default namespace filter instead of 'all' (#1445)
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user