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
customresource: stop shallow-copying metadata #110131
customresource: stop shallow-copying metadata #110131
Conversation
We no longer mutate anything in the genericregistry.Store, and the self-link is deprecated, unset and not persisted in etcd. There is no need to do the shallow-copies of metadata any longer. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
This reverts cd10f28 |
/triage accepted |
I think this is safe. But giving @wojtek-t and @p0lyn0mial the chance to look. |
Hmm - on one hand we're not doing any copying for non-CRD and it should behave the same way across CRDs and built-ins: OTOH, we have never been doing anything there, so I'm yet convinced. Where was the copying happening for built-in resources and why that mechanism wasn't effective for CRDs so that we had to fix that in the PR that this one is reverting? |
I'm not sure, @sttts was the original author here :D |
@wojtek-t see the old comment. Native types have |
OK - thanks. Forgot about that. I think without selflink setting it should be safe. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stevekuznetsov, wojtek-t 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 |
We no longer mutate anything in the genericregistry.Store, and the
self-link is deprecated, unset and not persisted in etcd. There is no
need to do the shallow-copies of metadata any longer.
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
/kind cleanup
/sig api-machinery
/assign @sttts