create_application
Generate and deploy applications in ArgoCD by defining metadata, source repository, sync policies, and deployment destinations using structured input parameters.
Instructions
create_application creates application
Input Schema
Name | Required | Description | Default |
---|---|---|---|
application | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"application": {
"additionalProperties": false,
"properties": {
"metadata": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"namespace": {
"description": "The namespace of the application.\n Note that this may differ from the namespace of individual resources.\n Make sure to verify the application namespace in the Application resource — it is often argocd, but not always.",
"type": "string"
}
},
"required": [
"name",
"namespace"
],
"type": "object"
},
"spec": {
"additionalProperties": false,
"properties": {
"destination": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"server": {
"type": "string"
}
},
"required": [
"server",
"namespace"
],
"type": "object"
},
"project": {
"type": "string"
},
"source": {
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"repoURL": {
"type": "string"
},
"targetRevision": {
"type": "string"
}
},
"required": [
"repoURL",
"path",
"targetRevision"
],
"type": "object"
},
"syncPolicy": {
"additionalProperties": false,
"properties": {
"automated": {
"additionalProperties": false,
"properties": {
"prune": {
"type": "boolean"
},
"selfHeal": {
"type": "boolean"
}
},
"required": [
"prune",
"selfHeal"
],
"type": "object"
},
"retry": {
"additionalProperties": false,
"properties": {
"backoff": {
"additionalProperties": false,
"properties": {
"duration": {
"type": "string"
},
"factor": {
"type": "number"
},
"maxDuration": {
"type": "string"
}
},
"required": [
"duration",
"maxDuration",
"factor"
],
"type": "object"
},
"limit": {
"type": "number"
}
},
"required": [
"limit",
"backoff"
],
"type": "object"
},
"syncOptions": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"syncOptions",
"retry"
],
"type": "object"
}
},
"required": [
"project",
"source",
"syncPolicy",
"destination"
],
"type": "object"
}
},
"required": [
"metadata",
"spec"
],
"type": "object"
}
},
"required": [
"application"
],
"type": "object"
}