How can I wait for a resource to be deleted in ArgoCD CLI? #24738
navesimchi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m trying to delete a specific resource from an application and then wait until it’s fully removed.
For example, I run:
argocd app delete-resource "$app" --kind Deployment
However, I haven’t found a way to wait until the resource is gone.
I tried using variations of argocd app wait, such as:
argocd app wait "$app" --delete --resource "apps:Deployment:*"
But none of them worked.
My Question
Is there a way in ArgoCD CLI to wait for a specific resource to be deleted?
• If so, what is the correct syntax?
• If not, is there a recommended workaround (e.g., combining argocd app wait with delete-resource, or some external mechanism)?
Motivation
The goal is to script automation steps that depend on the resource being fully deleted, and to avoid race conditions when deleting and re-creating resources.
Beta Was this translation helpful? Give feedback.
All reactions