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

Is it possible to disable secrets polling? #304

Open
felixdo opened this issue Aug 13, 2022 · 2 comments
Open

Is it possible to disable secrets polling? #304

felixdo opened this issue Aug 13, 2022 · 2 comments

Comments

@felixdo
Copy link

felixdo commented Aug 13, 2022

Hi. With my kubernetes user I dont have access to secrets. Can I somehow disable secrets in kubernetes-el?

@jinnovation
Copy link
Collaborator

Hi @felixdo, could you go into a bit more detail on the behavior you're seeing? This sounds like a useful feature request.

@felixdo
Copy link
Author

felixdo commented Aug 15, 2022

Hey, sure, so I just M-x kubernetes-overview and get this error directly in the overview buffer and also in the messages:

Error from server (Forbidden): secrets is forbidden: User "xxxxxxxx" cannot list resource "secrets" in API group "" in the namespace "yyyyyy". I'm not surprised about the error, this is expected, since my user can't access secrets.

Many ways to tackle this, but the best would probably be to stop polling after a 401 and fill the respective section with "secrets is forbidden" once. Then, when switching namespaces, polling could start again (e.g. if there's users that cannot access secrets in some but not other contexts).

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