Skip to content

[Bug?] kubel-use-namespace-list auto doesn't work #53

Description

@snowiow

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 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions