evanlucas / fish-kubectl-completions

kubectl completions for fish shell
MIT License
576 stars 42 forks source link

auto-completing resources in non-default namespaces #17

Open ggilmore opened 5 years ago

ggilmore commented 5 years ago

In the K8s clusters that I interact with, I have resources in two namespaces named prod and default. When I try to autocomplete pod names in the default namespace with kubectl get pod ... the pods from the default namespace are correctly listed. However, when I try complete pod names in the prod namespace with kubectl get pod -nprod ..., I only get pod names from the default namespace.

Should I expect this to work?

evanlucas commented 5 years ago

ah, sorry you are having an issue. I believe it should work if you put a space after the -n for now. I'll try to get around to fixing this in the next day or two. Thanks!

ggilmore commented 5 years ago

Thanks! I should also mention that I see the same issue with kubectl get pod --namespace=prod ...