c-bata / kube-prompt

An interactive kubernetes client featuring auto-complete.
MIT License
1.78k stars 133 forks source link

support namespace and current-context change #69

Closed yahaa closed 4 years ago

yahaa commented 4 years ago

When I use kube-prompt and I change current namespace by ns command,I found the promp was wrong,so would it be better to add polls to see if there are changes in ns or ctx?

c-bata commented 4 years ago

Sorry, I misread your description. I thought you want to poll namespaces only, so I put the review comment. But now I understand you want to also detect the changes of context.

If kube-prompt polls context and namespace, we need to separate caching spaces of resources like pods, deployments and so on. It requires a lot of code changes. So I'm sorry, I'm a little negative to merge this.