akuity / kargo

Application lifecycle orchestration
https://kargo.akuity.io/
Apache License 2.0
1.55k stars 133 forks source link

Argo CD App Updates should re-attempt conflict errors #2489

Open jessesuen opened 3 weeks ago

jessesuen commented 3 weeks ago

Description

A user hit the following error during a promotion:

    phase: Errored
      message: 'error executing Argo CD promotion mechanism: error patching Argo CD
        Application "guestbook": failed to apply
        modifications to unstructured object: unable to update sources to
        desired revisions: resource has been modified'

resource has been modified is a common scenario that Kargo should deal with transparently: by refetching the latest application object, reapplying the modifications, and retrying the update.

NOTE: if the conflict is with the .operation field, then we should not blow away what was set.

Version

v0.8.7

Logs

Paste any relevant application logs here.