evanlucas / fish-kubectl-completions

kubectl completions for fish shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto-completing resources in non-default namespaces

ggilmore opened this issue · comments

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?

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!

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