Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching cluster & namespace: breaks autocomplete #24

Open
jannickj opened this issue Feb 27, 2020 · 1 comment
Open

Switching cluster & namespace: breaks autocomplete #24

jannickj opened this issue Feb 27, 2020 · 1 comment

Comments

@jannickj
Copy link

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.

@evanlucas
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants