Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-1.24] codegen: fix DeepCopy races (#2339)
* codegen: fix DeepCopy races Fixes istio/api#3019 The deepcopygen we use is from Kubernetes. Its not quite suitable for our types due to our usage of protobuf, which has limitations on dereferencing pointer types. This causes race conditions in concurrent usage of the DeepCopy function. This is possible to trigger with real Istio (found by running Istio in a live cluster with `-race`, though our current tests happen to not trigger things I guess), as well as other usage of istio/client-go (as the reporter found). I ran istio/istio with this change and found all tests continue to pass, and running in a live cluster no longer fails * clarify comments --------- Co-authored-by: John Howard <john.howard@solo.io>
- Loading branch information