Forrest logo
back to the argocd tool

argocd-app:tldr:aa50a

argocd-app: Enable application auto-sync.
$ argocd app set ${app_name} --sync-policy auto --auto-prune --self-heal
try on your machine

This command is using the Argo CD command-line tool to configure an application deployment. Here's a breakdown of the different flags and arguments used:

argocd app set: This part signifies that you're using the Argo CD app set command to modify the configuration of an application.

${app_name}: It's expected that you have a variable named app_name that holds the name of the application you want to modify. The ${} is a way to reference variables in command-line contexts.

--sync-policy auto: This flag specifies the synchronization policy for the application. By setting it to auto, it means that the application should automatically sync whenever there is a change detected.

--auto-prune: This flag enables the automatic pruning of resources. When enabled, if any resources associated with the application are removed from the Git repository or the application's manifest, they will also be deleted from the Kubernetes cluster during synchronization.

--self-heal: This flag instructs Argo CD to perform self-healing of the application if any discrepancies or inconsistencies are found during synchronization. It will attempt to bring the application back to its specified desired state automatically.

By executing this command with the corresponding values, you can set the synchronization policy, enable auto-pruning, and enable self-healing for the specified application in Argo CD.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the argocd tool