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
✨ Add TransformStripManagedFields #2791
✨ Add TransformStripManagedFields #2791
Conversation
01dce5f
to
742fa6c
Compare
a7015d9
to
85aa0fc
Compare
This change adds `TransformStripManagedFields` to the Cache, a transform func that strips off all managed fields for objects. There are no known issues when using this as a `DefaultTransform` unless there is explicit code to access objects `ManagedFields` and can lead to a significant reduction in memory usage.
85aa0fc
to
4cf9db0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very useful when using client.Patch with Apply logic, thanks
/lgtm
/hold
if anyone wants to take a look
LGTM label has been added. Git tree hash: 8bfda55969144726bdabcfb9c7cad9a597b588a0
|
Thx!! /approve /hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, Danil-Grigorev, sbueringer 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 |
This change adds
TransformStripManagedFields
to the Cache, a transform func that strips off all managed fields for objects. There are no known issues when using this as aDefaultTransform
unless there is explicit code to access objectsManagedFields
and it can lead to a significant reduction in memory usage.