kubernetic icon indicating copy to clipboard operation
kubernetic copied to clipboard

[FEATURE REQUEST] Support for specify target namespace explicitly

Open log2 opened this issue 6 years ago • 4 comments

In my usecase, I can't access all namespace on a given cluster, but rather I can specify the namespace I can target directly, using -n. Via command line this works like a charm, whereas in Kubernetic I can just browse for namespaces and, since my access level to the cluster is not good for namespace browsing, I can't use the app.

log2 avatar Mar 12 '19 15:03 log2

I would also need this to use the app, but for a different reason. In my case I have enough access to list all the namespaces, but there is one I would often want to select whose entire name is a sub-string of most of the other namespaces. Unfortunately this renders the dropdown useless: if I type the name, I see an arbitrary subset of all the matching namespaces, not including the one I've typed explicitly, so I can't select it.

pmpfr avatar Apr 17 '19 08:04 pmpfr

That's strange, the logic of the dropdown filter is fuzzy, selecting the best-match of your typed text either it is a prefix or a text contained in the name of the namespace.

Can you provide an example of list of namespaces, the text you filter with and how it does not filter correctly?

dkapanidis avatar Apr 17 '19 08:04 dkapanidis

example "default" namespace can be selected by searching either "def", "ault" or "default".

dkapanidis avatar Apr 17 '19 08:04 dkapanidis

I think I might have slightly misreported actually. It's not that the filter doesn't match (I assume). It's that it matches so many and that the precise match isn't at the top that it makes it really hard to find. (Assuming it's there at all - previously I convinced myself it wasn't and from a user POV they are listed in "random" order, so it's hard to be sure.)

Analogous example - suppose I have the following namespaces:

  • foo
  • bar-foojob-1, bar-foojob-2, - bar-foojob-3, ... and lots more like this
  • baz-foojob-1, baz-foojob-8, - baz-foojob-3034 ... and lots more like this
  • ... and lots more like this with qux etc instead of bar/baz

When I type foo in the box, loads of namespaces are listed, but if foo is listed, it's buried in the middle and not at the top where you might hope.

pmpfr avatar Apr 17 '19 10:04 pmpfr