-
Notifications
You must be signed in to change notification settings - Fork 39k
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
apiextensions: fix concurrent map access copying items' ObjectMeta in UnstructuredList #65092
apiextensions: fix concurrent map access copying items' ObjectMeta in UnstructuredList #65092
Conversation
59a0663
to
5e21c63
Compare
Wow, so my educated guess was correct. Code in the /lgtm |
Fixed the comment. |
5e21c63
to
1a7308d
Compare
This is also a 1.10 cherry-pick candidate. |
/hold cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ash2k, deads2k, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
@dims: Those labels are not set on the issue: 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. |
/priority critical-urgent |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process @ash2k @deads2k @liggitt @mbohlool @sttts Pull Request Labels
|
/retest |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
…upstream-release-1.8 Automated cherry pick of #65092: apiextensions: fix concurrent map access copying items'
The list endpoint sets the self-link. If we do not create a (shallow) copy of ObjectMeta this will mutate the cached objects.
Background: native objects like PodList have a
Items []Pod
field which implicitly shallow-copies ObjectMeta. UnstructuredList only shallow-copies Unstructured, but shares all the JSON data including ObjectMeta, i.e. the Object pointer points to the value in the cache.Fixes #59478