sync_application
Synchronize ArgoCD applications with specified revisions, resources, and strategies. Supports pruning, dry runs, and custom namespaces to manage application deployments effectively.
Instructions
Sync an application in ArgoCD
Args:
name: The name of the application to sync (required)
revision: Git revision to sync to (optional)
prune: Whether to prune resources (default: False)
dry_run: Whether to perform a dry run (default: False)
strategy: Sync strategy ("apply" or "hook")
resources: List of resources to sync (optional)
namespace: The application namespace (optional)
Returns:
Sync result details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dry_run | No | ||
name | Yes | ||
namespace | No | ||
prune | No | ||
resources | No | ||
revision | No | ||
strategy | No |
Input Schema (JSON Schema)
{
"properties": {
"dry_run": {
"default": false,
"title": "Dry Run",
"type": "boolean"
},
"name": {
"title": "Name",
"type": "string"
},
"namespace": {
"default": "",
"title": "Namespace",
"type": "string"
},
"prune": {
"default": false,
"title": "Prune",
"type": "boolean"
},
"resources": {
"anyOf": [
{
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Resources"
},
"revision": {
"default": "",
"title": "Revision",
"type": "string"
},
"strategy": {
"default": "",
"title": "Strategy",
"type": "string"
}
},
"required": [
"name"
],
"title": "sync_applicationArguments",
"type": "object"
}