create_application
Create and manage ArgoCD applications by specifying details such as name, project, repository URL, and destination server. Automate sync, prune resources, and enable self-healing for efficient deployment.
Instructions
Create a new application in ArgoCD
Args:
name: The name of the application (required)
project: The project name (required)
repo_url: The Git repository URL (required)
path: Path within the repository (required)
dest_server: Destination K8s API server URL (required)
dest_namespace: Destination namespace (required)
revision: Git revision (default: HEAD)
automated_sync: Enable automated sync (default: False)
prune: Auto-prune resources (default: False)
self_heal: Enable self-healing (default: False)
namespace: Application namespace
validate: Whether to validate the application before creation
upsert: Whether to update the application if it already exists
Returns:
The created application details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
automated_sync | No | ||
dest_namespace | Yes | ||
dest_server | Yes | ||
name | Yes | ||
namespace | No | ||
path | Yes | ||
project | Yes | ||
prune | No | ||
repo_url | Yes | ||
revision | No | HEAD | |
self_heal | No | ||
upsert | No | ||
validate | No |
Input Schema (JSON Schema)
{
"properties": {
"automated_sync": {
"default": false,
"title": "Automated Sync",
"type": "boolean"
},
"dest_namespace": {
"title": "Dest Namespace",
"type": "string"
},
"dest_server": {
"title": "Dest Server",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"namespace": {
"default": "",
"title": "Namespace",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
},
"project": {
"title": "Project",
"type": "string"
},
"prune": {
"default": false,
"title": "Prune",
"type": "boolean"
},
"repo_url": {
"title": "Repo Url",
"type": "string"
},
"revision": {
"default": "HEAD",
"title": "Revision",
"type": "string"
},
"self_heal": {
"default": false,
"title": "Self Heal",
"type": "boolean"
},
"upsert": {
"default": false,
"title": "Upsert",
"type": "boolean"
},
"validate": {
"default": true,
"title": "Validate",
"type": "boolean"
}
},
"required": [
"name",
"project",
"repo_url",
"path",
"dest_server",
"dest_namespace"
],
"title": "create_applicationArguments",
"type": "object"
}