I'm not sure if this is really a bug or not, but if I execute the command from the code to determine if I'm able to list namespaces I get the following warning before the real answer:
$ kubectl auth can-i list namespaces -n default
Warning: resource 'namespaces' is not namespace scoped
yes
Sadly I can't find anything online regarding this specific warning and if I'm the only one having this problem. But would it make sense to check if a line with yes exists instead of checking the whole output for equality? https://github.com/abrochard/kubel/blob/master/kubel.el#L703
If this change is welcome, I would like to try to implement a fix myself, since it's quite some time since I last contributed 😄
I'm not sure if this is really a bug or not, but if I execute the command from the code to determine if I'm able to list namespaces I get the following warning before the real answer:
Sadly I can't find anything online regarding this specific warning and if I'm the only one having this problem. But would it make sense to check if a line with yes exists instead of checking the whole output for equality? https://github.com/abrochard/kubel/blob/master/kubel.el#L703
If this change is welcome, I would like to try to implement a fix myself, since it's quite some time since I last contributed 😄