Skip to main content
Version: Release 25.3

Argo CD Plugin

This topic describes the tasks available with the Argo CD plugin.

About Argo CD

Argo CD is a GitOps continuous delivery tool for Kubernetes, which continuously monitors all the running applications and compares the live state with the desired state specified in the Git repo. Argo CD automates the deployment of the desired application states in the specified target environments. Application deployments can track updates to branches, tags, or pinned to a specific version of manifests at a Git commit.

A deployed application whose live state deviates from the target state is considered OutOfSync.

Prerequisites

  1. Digital.ai Release 22.0.x or later
  2. A running Argo CD server

Setup Connection to Argo CD Server

  1. Log on to Digital.ai Release as an Administrator.

  2. Navigate to CONFIGURATION > Connections.

  3. Click the + icon next to ArgoCD: Server.

  4. Fill in the required information:

    FieldDescription
    TitleA name for the Argo CD server connection.
    URLThe base URL where the Argo CD server can be reached.
    UsernameLogin username for the Argo CD server.
    PasswordLogin password for the Argo CD server.
    Auth TokenAuthentication token for connecting to the Argo CD server. Use this instead of username/password when token-based authentication is enabled.
    ProxyFill in the proxy details if needed.
    CapabilitiesDefines routing rules for Release Runners. Add one or more capability labels to direct tasks to appropriate runners.

    argocd

  5. Click Test to verify your connection to the Argo CD server.

  6. Click Save if the connection is successful.

Available Tasks

The following tasks are available with the Argo CD plugin:

  • Add Repository
  • Create Project
  • Create Application
  • Sync Application
  • Get Sync Status
  • Get Manifest
  • Wait For Status
  • Get Revision Metadata
  • List Projects
  • List Repositories
  • Rollback Application
  • Delete Application

Each task in the Argo CD plugin includes a set of input properties and output properties. Input properties pass in parameters required for execution, while output properties capture the results returned by Argo CD.

tip

The task output properties can be mapped to Release variables for later use.
For more information, see Mapping Task Output Properties to Variables.

Add Repository

Adds a new Git repository configuration in the Argo CD instance.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
Repo typeSpecifies the repository type (git or helm).
Repo URLURL to the Git or Helm chart repository.
Repository nameOptional unique identifier for this repository in Argo CD.
ProjectArgo CD project associated with the repository.
Repo usernameUsername for repository authentication.
Repo passwordPassword or token for repository authentication.
Enable LFSEnables Git Large File Storage support.
Enable OCIEnables OCI support for Helm OCI repositories.
InsecureAllows insecure connections.
Insecure Ignore host keyDisables SSH host key verification for SSH connections.
ProxyHTTP/HTTPS proxy URL used for repository access.
SSH keySSH private key used for SSH-based repository authentication.
TLS client certificateTLS client certificate (PEM format).
TLS client keyTLS private key paired with the client certificate.

Output Properties

FieldDescription
Repository URLThe repository URL configured in Argo CD.
ResponseKey-value response returned by Argo CD.

Add Repository

Create Project

Creates a new project in the Argo CD instance.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
Project nameName of the Argo CD project. Must be lowercase.
Source repositoriesList of repository URLs allowed for this project.
DestinationsAllowed deployment destinations (cluster URL and namespace).

Output Properties

FieldDescription
Project nameReturns the created project name.

Create Project

Create Application

Creates a new Argo CD application from definitions in a Git repository.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
App nameName of the Argo CD application.
Project nameArgo CD project under which the application is created.
Cluster URLDestination cluster URL for deployment.
NamespaceTarget namespace where the application is deployed.
Repo URLSource repository URL containing manifests/chart.
PathRepository path of the application manifests/chart.
Helm chart nameHelm chart name (when Helm source is used).
Target revisionBranch, tag, commit, or chart version to deploy.
Sources YAMLYAML array of sources for multi-source applications. Overrides single source configuration when provided.
Value filesList of Helm value files for rendering.
ValuesInline Helm values in YAML/JSON format.
Helm parametersKey-value overrides for Helm chart parameters.
UpsertUpdates application if it already exists.
ValidateValidates manifests before creation.
Auto syncEnables automatic sync for the application.
Prune resourcesDeletes resources no longer defined in Git.

Output Properties

FieldDescription
App nameReturns the created application name.
ResponseKey-value response returned by Argo CD.

Create Application Create Application Options

Sync Application

Synchronizes an Argo CD application to the target Kubernetes cluster.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
Application nameName of the Argo CD application.
Prune resourcesDeletes resources no longer defined in Git.
RefreshRefresh mode for the application (normal or hard).
Wait for syncWaits until sync operation completes.
Retry wait timeWait time in seconds between retry attempts.
Max retriesMaximum number of retry attempts.

Output Properties

FieldDescription
StatusResult of the sync operation.
RevisionApplication revision that was synced.

Sync Application

Get Sync Status

Retrieves the sync status of an existing Argo CD application.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
App nameName of the Argo CD application.

Output Properties

FieldDescription
Sync statusCurrent sync status of the application.
RevisionCurrent revision applied by the application.

Get Sync Status

Get Manifest

Retrieves live and desired manifest data for an application resource.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
App nameName of the Argo CD application.
Resource nameName of the resource whose manifest is requested.

Output Properties

FieldDescription
Live manifestCurrent manifest from the cluster.
Desired manifestDesired manifest from Git.

Get Manifest

Wait For Status

Waits for an Argo CD application to reach the expected sync and health status.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
App nameName of the Argo CD application.
Expected sync statusSync status the task waits for.
Expected health statusHealth status the task waits for.
Retry wait timeWait time in seconds between retries.
Max retriesMaximum number of retry attempts.

Output Properties

FieldDescription
Sync statusFinal sync status of the application.
Health statusFinal health status of the application.
RevisionCurrent revision when task completes.

Wait For Status

Get Revision Metadata

Retrieves application revision metadata based on revision ID.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
App nameName of the Argo CD application.
RevisionApplication revision whose metadata is requested.

Output Properties

FieldDescription
MetadataMetadata details for the specified revision.

Get Revision Metadata

Note: The Revision field is available as output in SyncApplication and SyncStatus tasks and can be reused in your flow.

List Projects

Retrieves and displays all projects configured in the Argo CD instance.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.

Output Properties

FieldDescription
Project listList of Argo CD projects.

List Projects

List Repositories

Retrieves and displays all Git repositories configured in the Argo CD instance.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.

Output Properties

FieldDescription
RepositoriesList of configured repositories.

List Repositories

Rollback Application

Rolls back an Argo CD application to a previous revision.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
Project nameName of the Argo CD project.
Application nameName of the Argo CD application.
Application namespaceNamespace where the application is deployed.
History ID and revisionRevision to roll back to in HistoryID-Revision format.
Prune resourcesDeletes resources no longer defined in Git.
Dry runSimulates rollback without applying changes.
Wait for completionWaits until rollback completes.
Retry wait timeWait time in seconds between retries.
Max retriesMaximum number of retry attempts.

Output Properties

FieldDescription
Application sync statusSync status after rollback.
Current revisionRevision after rollback completion.

Rollback Application

Delete Application

Deletes an existing Argo CD application and its managed resources.

Input Properties

FieldDescription
ArgoCD serverThe ArgoCD server connection to use for this operation.
Project nameName of the Argo CD project.
Application nameName of the Argo CD application.
Propagation policyDeletion propagation policy (foreground, background, non-cascading).
Application namespaceNamespace where the application is deployed.
Wait for completionWaits until delete operation completes.
Retry wait timeWait time in seconds between retries.
Max retriesMaximum number of retry attempts.

Output Properties

FieldDescription
ResponseKey-value response returned by Argo CD.

Delete Application