Dashboard: Namespace selection dropdown

Created on 4 Jun 2016  路  10Comments  路  Source: kubernetes/dashboard

Issue details

I think the default choice behaviour is not obvious.
By default, the drop down is on "namespace not selected". You would expect from this, to display all the resources from every namespace. But actually it displays the resources from whatever namespace is configured as the default namespace.

I see two possibilities personally:

  • Remove this entry, and by default, select whatever is the default namespace
  • Keep the entry but display everything from every namespace

Thoughts ?

Environment
Dashboard version: v1.1.0-beta2
Kubernetes version: v1.2.4
Operating system: CoreOS

Most helpful comment

Second solution is to redirect to list page when changing namespace from details page.

All 10 comments

Also, does that make sense to still display the dropdown on the details view of a resource ?
Because, it doesn't matter what I do with the dropdown, the details of the resource does not change.

Example where the selected namespace in the dropdown is different from the namespace of the resource:

image

Starting work on this...

@edouardKaiser @bryk Can we close it?

Fixed in #892

The dropdown is still displayed when viewing the details of a resource.

IMO we should disable namespace selector when we're on details page, not on list/summary page. It should be also disabled for non-namespaced resources like namespaces or nodes.

Second solution is to redirect to list page when changing namespace from details page.

Yep. I think we should tackle this problem in our second iteration of Nav&Chrome.

Is this still being looked at?

It's still confusing when switching a namespaces but it stays on the current resource you were looking at.

Eg. If in a staging namespace and looking at deployments, if you switch to production namespace it shows a loading screen but you're still viewing the previous staging resource. Changing namespaces should send land you on the Workloads screen

Taking care of it right now.

Was this page helpful?
0 / 5 - 0 ratings