sync_application
Sync an ArgoCD application to its desired state. Supports dry run, prune, and syncing to a specific revision.
Instructions
sync_application syncs application. Specify applicationNamespace if the application is in a non-default namespace to avoid permission errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applicationName | Yes | ||
| applicationNamespace | No | The namespace where the application is located. Required if application is not in the default namespace. | |
| dryRun | No | Perform a dry run sync without applying changes | |
| prune | No | Remove resources that are no longer defined in the source | |
| revision | No | Sync to a specific revision instead of the latest | |
| syncOptions | No | Additional sync options (e.g., ["CreateNamespace=true", "PrunePropagationPolicy=foreground"]) |