mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-05 19:47:37 +09:00
REST.Update wraps the HelmRelease write in retry.RetryOnConflict so a stale resourceVersion (the helm-controller racing the status subresource) is refreshed and retried instead of surfacing a 409. Add a unit test using a fake client whose interceptor returns one Conflict on the first Update and succeeds on the second, asserting Update returns nil and writes exactly twice. Addresses non-blocking follow-up 3 on #2948. Assisted-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>