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

auto-completing resources in non-default namespaces

Open ggilmore opened this issue 6 years ago • 2 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?

ggilmore avatar Jan 15 '19 18:01 ggilmore

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!

evanlucas avatar Jan 17 '19 14:01 evanlucas

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

ggilmore avatar Jan 17 '19 18:01 ggilmore