fish-kubectl-completions icon indicating copy to clipboard operation
fish-kubectl-completions copied to clipboard

Switching cluster & namespace: breaks autocomplete

Open jannickj opened this issue 5 years ago • 1 comments

Setting namespace works :) and setting cluster works :), but using both break the autocomplete :( i.e: kubectl -n [namespace] ✔️ kubectl --cluster [cluster] ✔️ kubectl -n [namespace] --cluster [cluster]

Is this feasible to fix? I looked at the code there seems to be a lot happening so I don't know if it can be fixed with a simple tweak.

jannickj avatar Feb 27 '20 15:02 jannickj

hm this seems to be working for me. I would recommend you pass context before namespace though, that way you can get the namespace to autocomplete. (The namespaces available will depend on the current context). What version of kubectl are you using? And what version of Kubernetes?

evanlucas avatar Aug 28 '20 12:08 evanlucas