-
Notifications
You must be signed in to change notification settings - Fork 41
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
Use reflector.Run instead of reflector.ListAndWatch #174
Comments
Just reproduced this behavior on my local laptop with Kind.
it will be missing |
and now the same thing, but using
it will be visible :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We recently found out a problem in capsule-proxy when switching to rolebindings reflector to show tenant namespaces. If there are some issues with etcd (for example reelection is triggered) and reflector is unable to watch rolebindings from ApiServer
it doesn't reconnect and watch new rolebindings until resync is triggered by
rolebindings-resync-period
.In order to fix it will we had to use reflector.Run function (https://github.com/kubernetes/client-go/blob/v0.22.3/tools/cache/reflector.go#L218), which wraps reflector.ListAndWatch into backoff and will restart reflector in case of error returned
The text was updated successfully, but these errors were encountered: