kubernetes-reflector icon indicating copy to clipboard operation
kubernetes-reflector copied to clipboard

No retry after failure

Open kralikba opened this issue 4 months ago • 0 comments

Hi,

I have occasionally encountered a situation where Reflector failed with an unexpected Kubernetes API Server error regarding creating a secret, but even after the reason has been cleared, the secret was still not created.

I think the cause is that if ResourceMirror.ResourceReflect fails, it catches the exception, logs it, then returns successfully:

https://github.com/emberstack/kubernetes-reflector/blob/a9571d3301395d6b2d6fa25afc945eb5c0d46c1b/src/ES.Kubernetes.Reflector/Core/Mirroring/ResourceMirror.cs#L487

kralikba avatar Oct 01 '24 08:10 kralikba