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
why encode object instead of event and returned directly in watchEncoder? #122153
Comments
@likakuli: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig api-machinery |
@wojtek-t could probably answer this |
That is not correct - this works as it should. Basically, we store also encoding of the "whole watch event" inside the CachingObject cache to avoid serializing them independently. You can see that the identifier contains the watch event type so that each even would be serialized independently. |
I misunderstood the code previously, but now it seems fine. Thank you |
/triage accepted |
What happened?
https://github.com/kubernetes/kubernetes/pull/120300/files#diff-12e0758457373aa860bb0baae0878a99c107840d25fcf356d126d4b3d1d15663R177-R178
Encode function of watchEncoder write event serialization result to response. the above lines seems only write object instead of event to response. not sure if my understanding is correct.
What did you expect to happen?
write event to response
How can we reproduce it (as minimally and precisely as possible)?
add a unit test and set object in event to CacheableObject
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: