You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2020. It is now read-only.
If you’re just using this package to get resources and not mutate them then you don’t need to worry about deep or shallow copy.
If you plan to copy items from the informer cache and mutate them, then using shallow copy might cause inconsistency as you end up having two entities updating the same resource.
For enabling this functionality automatically, istio’s generated go files from proto need to add the annotations for deepcopy for all relevant structure and generate deepcopy if any need special handling.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The generated Go structs for Istio API resources are missing the
DeepCopyInto
methods which are needed by k8s codegen to generate client code.A poor man's version of
DeepCopyInto
has been implemented in this repository like this which is more of a shallow copy than deep copy.This might cause issues related to corruption in future.
The text was updated successfully, but these errors were encountered: