-
Notifications
You must be signed in to change notification settings - Fork 93
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
Handle the case when listing namespaces is forbidden #42
Conversation
Ignore a forbidden error as that means we can connect to the api server Do not try to watch at cluster level when we only need one namespace Fixes boz#12
Looks great @carlossg, thank you. I'll play around with it shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay; I've been off the grid.
I like the change, and would love to fix #12, my only hesitation is that it breaks the current behavior if the namespace does not exist yet - it currently watches for namespaces to appear.
I think adding a flag to force the behavior in this patch might be the best route. I'll try to think of a decent name this evening. I'm open to flag name suggestions or any other ideas to get #12 fixed.
Thanks for getting this moving!
maybe we just need to check if the namespace exists, and if so, watch only that one. |
to keep existing behavior if the namespace does not exist we watch namespaces to wait for it
this should work out that case |
Is this feature ready to be merged? |
I've been using it for weeks, just waiting for @boz to approve |
Thank you so much. Sorry for the delay. |
Ignore a forbidden error as that means we can connect to the api server
Do not try to watch at cluster level when we only need one namespace
Fixes #12