Argocd Patch Application
argocd_patch_applicationPatch Argo CD applications by applying JSON merge or RFC 6902 patches to update specs, change target revisions, or disable auto-sync.
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 |