![Forrest logo](/images/logo.png)
argocd-app:tldr:aa50a
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.