manage_gitops
Destructive
Perform GitOps operations on ArgoCD and FluxCD resources, including sync, rollback, suspend, and resume.
Instructions
Perform operations on GitOps resources (ArgoCD or FluxCD). For ArgoCD: actions are 'sync' (trigger deployment), 'refresh', 'terminate', 'rollback', 'suspend' (disable auto-sync), 'resume' (re-enable auto-sync). Resource kind is always Application. For FluxCD: actions are 'reconcile' (trigger sync), 'sync-with-source', 'suspend', 'resume'. Requires 'kind' parameter (kustomization, helmrelease, gitrepository, etc.).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | action: sync, refresh, terminate, rollback (ArgoCD only), reconcile or sync-with-source (FluxCD), suspend, or resume | |
| tool | Yes | gitops tool: argocd or fluxcd | |
| kind | No | resource kind (FluxCD only): kustomization, helmrelease, gitrepository, etc. | |
| namespace | Yes | resource namespace | |
| name | Yes | resource name | |
| revision | No | sync only — branch/tag/commit. Empty = use targetRevision. | |
| prune | No | sync/rollback — delete resources no longer in source. Default true for sync, false for rollback. | |
| dryRun | No | sync/rollback — preview only, do not apply. | |
| force | No | sync only — kubectl --force; required for some immutable-field changes. | |
| applyOnly | No | sync only — skip PreSync/PostSync/SyncFail hooks. | |
| syncOptions | No | sync only — Argo SyncOption strings, e.g. Replace=true, ServerSideApply=true. | |
| historyId | No | rollback only — history entry ID to roll back to (from get_resource Application status.history). |