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

Fix pod metadata overwritten caused by updateStatus #976

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clarklee92
Copy link

For most of the types(like pod) defined early on in Kubernetes, changes to metadata were allowed via function UpdateStatus. https://github.com/kubernetes/kubernetes/issues/92022
The way to update pod status in VK happens to be updateStatus, which may cause the change to metadata like Labels or Annotations overwritten back to the old values(This is not inevitable, because the default interval of heartbeat reporting is 5 seconds, and the metadata of pod may be collected after modification).

Signed-off-by: clarklee92 clarklee1992@hotmail.com

Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
@clarklee92
Copy link
Author

@miekg

@clarklee92
Copy link
Author

Re-test may be required, testing log indicates that the test node connection has timed out. I tested the UT locally and verified it in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants