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
NewClientsetFromConfig, located in pkg/api/istio/networking.istio.io/v1beta1/clients.go experiences a race condition due to the use of global variables, such as scheme.Scheme on line 64.
This is not the first time that we ran into this issue. The bug is actually in skv2, namely in the template that is used the generate the client code, see solo-io/skv2#375.
All the logic to initialize k8s Schemes should reside in an init function in the package for the given group/version, so it is executed exactly once when the package is first used.
@samuelvl has found a workaround using istio clients directly instead of external-apis. Does this solution have any downsides? Do we have a strong preference for our external-apis for some reason?
NewClientsetFromConfig
, located inpkg/api/istio/networking.istio.io/v1beta1/clients.go
experiences a race condition due to the use of global variables, such asscheme.Scheme
on line 64.More background and occurrences on the PR here: https://github.com/solo-io/gloo-mesh-enterprise/pull/10267
Example data race
The text was updated successfully, but these errors were encountered: