Skip to content

argocd-wait step #5400

@jessesuen

Description

@jessesuen

Proposed Feature

argocd-update only waits until a sync operation completes. However, in applications that have no PostSync hooks or sync waves, this will return immediately, as the sync is essentially a kubectl apply of all manifests.

We need something equivalent to the CLI's:

argocd app wait my-app

NOTE: Kargo already has a wait for health functionality. This occurs as part of an "implicit verification" process to ensure an app is healthy before running analysis. However, this process may be happening too late for some use cases.

Motivation

Users often prefer that the app sync and wait happen as part of a promotion, instead of verification. Some use cases:

  1. In an app that contains multiple argocd-updates for different microservices (e.g. backend + frontend) as in the "grouped services" pattern, the backend may need to reach health before the frontend is updated

  2. Post update steps, like notifications, could be sent only after ensuring apps are healthy after the update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/controllerAffects the (main) controllerkind/enhancementAn entirely new featurekind/proposalIndicates maintainers have not yet committed to a feature requestpriority/normalThis is the priority for most workworkaroundDiscussion includes a workaround for a common problem

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions