mirror of
https://github.com/kubernetes/client-go.git
synced 2026-02-03 16:01:12 +00:00
When attempting to record a new Event and a new Serie on the apiserver at the same time, the patch of the Serie might happen before the Event is actually created. In that case, we handle the error and try to create the Event. But the Event might be created during that period of time and it is treated as an error today. So in order to handle that scenario, we need to retry when a Create call for a Serie results in an AlreadyExist error. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> Kubernetes-commit: 2f83117bcfe30ad3ada7f1ca66f4b885a1d5df25