-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
watcher on 0.92 does not get all objects during Init #1524
Comments
uhh...wtf. this is actually not just related to reflectors (or the unstable stream sharing api that's included above), but seemingly watchers in general. tried using the thanks for reporting this! |
No problem! It was very confusing to debug since using the api object to simply list all still returns the expected result! |
Confirming that this is a result of one of the many watcher changes in 0.92, yes. The bug in the kube/kube-runtime/src/watcher.rs Lines 490 to 505 in f553c4e
it should be starting a new |
Will have to do a patch release for this. It breaks store completeness and is a pretty bad bug. Possibly even yank worthy after a patch release. As for why we never saw this:
we do need a better test case for this long term though. separate issue. |
cannot believe i missed this :( fixes #1524 Signed-off-by: clux <[email protected]>
* Fix watcher not fully paginating on Init cannot believe i missed this :( fixes #1524 Signed-off-by: clux <[email protected]> * upgrade mock test (these fail on master) Signed-off-by: clux <[email protected]> --------- Signed-off-by: clux <[email protected]>
Current and expected behavior
in 0.92 if you initialize a watcher with an Api object created with
Api::all
the watcher only reflects objects withing the current namespace into the store. Example:This snippit in 0.92 once the reflector returns as ready only contains pods from the current namespace when calling
reader.state()
, reverting to 0.91 fixes the issue and returns pods across all namespaces.Possible solution
No response
Additional context
No response
Environment
Configuration and features
No response
Affected crates
No response
Would you like to work on fixing this bug?
None
The text was updated successfully, but these errors were encountered: