Argocd Patch Application
argocd_patch_applicationPatch an Argo CD application to update its spec, such as changing targetRevision or disabling auto-sync, using a JSON merge or JSON patch body.
Instructions
Patch an application — the one tool for every update.
Examples: change targetRevision with patch='{"spec":{"source":{"targetRevision":"v2"}}}'; disable auto-sync with patch='{"spec":{"syncPolicy":{"automated":null}}}'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name; accepts namespace/name for apps-in-any-namespace | |
| patch | Yes | JSON patch body | |
| project | No | Project; with it a missing app is 404 and a wrong-project app is 403 | |
| patch_type | No | merge (RFC 7386) or json (RFC 6902) | merge |
| app_namespace | No | Override appNamespace; defaults to ARGOCD_APP_NAMESPACE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |