c-bata / kube-prompt

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

Is there a reason kube-prompt needs to fetch all namespaces? #47

Open Ilyes512 opened 5 years ago

Ilyes512 commented 5 years ago

I noticed that when I try to start kube-prompt and my current context has a user that is not allowed to list all namespaces that it prompts me the fallowing error:

error namespaces is forbidden: User "system:serviceaccount:<name>:<another-name>" cannot list namespaces at the cluster scope

However, kube-prompt works just fine when I switch to a user without namespace list right from a user with those rights.

malys commented 5 years ago

Hi, I have the same issue. Is it possible to limit to all authorized namespaces?