Argo CD Apps

Argo CD Apps

Certified

GitOps-focused tasks that sync or inspect an Argo CD application via the Argo CD CLI. Use Sync to apply the desired GitOps Git state and Status to read sync/health, conditions, and resources.

Use Sync to apply the desired GitOps Git state (supports prune/dry-run/force plus optional revision and timeout) and Status to read sync/health, conditions, and resources (optionally with refresh). Both tasks need the Argo CD server, token, and application along with optional TLS/connection flags (insecure, plaintext, grpcWeb, serverCert) and CLI image/version overrides.

How to use the ArgoCD plugin

Sync and inspect ArgoCD applications from Kestra flows using the ArgoCD CLI.

Authentication

Set server to your ArgoCD API server URL and token to a bearer token for ArgoCD CLI authentication. Set application to the target ArgoCD application name. Store token in a secret.

By default TLS verification is enabled (insecure: false); set insecure: true to skip certificate validation, or set serverCert to a PEM-encoded certificate to verify a self-signed or custom-CA server. For gRPC connections through proxies, set grpcWeb: true. The plugin runs the ArgoCD CLI inside a container (containerImage defaults to curlimages/curl: latest); use taskRunner to control where the container runs.

Tasks

apps.Sync synchronizes an application — equivalent to argocd app sync. Set revision to target a specific Git commit, tag, or branch. Set prune: true to remove resources no longer in Git, dryRun: true to preview changes, and force: true to recreate resources if needed. The output includes syncStatus, healthStatus, and a resources list with per-resource Kubernetes status.

apps.Status fetches current application status — equivalent to argocd app get. Set refresh: true to bypass the cache and re-query the cluster. The output includes syncStatus, healthStatus, conditions, and resources.