mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 23:23:23 +09:00
Rebuild each Application update from the current release after a
conflict and rerun admission. Reusing the old result can lose concurrent
patch changes or retain validation against an obsolete snapshot.
Explicit resource versions below the current release conflict; one
that parses to zero is unconditional, as in the generic registry.
Monitor-triggered watch versions use the same numeric comparison.
Caller-supplied UID constraints are rechecked on every retry.
Unconstrained updates retain Kubernetes semantics and may target a
replacement object with the same name. A retried PUT is judged like a
fresh unconditional one: it drops a finalizer added between attempts,
and the API server rejects one it restores on a deleting release.
Fixes: 728f6761f1 ("fix(api): retry HelmRelease update on resourceVersion conflict")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>