Skip to main content
Version: Release 24.1

Argo CD Container Plugin

The Argo CD plugin allows you to seamlessly integrate Argo CD with your existing CI/CD pipelines, streamlining your Kubernetes continuous delivery workflow.

important

You must set up a connection to the AWS server before adding AWS tasks. For more information, see Set up Connection to Argo CD Server.

note

In the release flow editor, Container tasks have a blue border.

Argo CD plugin provides the following features:

  • Check Application Status (Container)
  • Create Application (Container)
  • Create Project (Container)
  • Create Repository (Container)
  • Delete Application (Container)
  • Delete Project (Container)
  • Delete Repository (Container)
  • Get Application Details (Container)
  • Get Repository Details (Container)
  • Get Version Command (Container)
  • Get Project Details (Container)
  • List Applications (Container)
  • List Projects (Container)
  • List Repositories (Container)
  • Rollback Application (Container)
  • Sync Application (Container)
  • Update Application (Container)
  • Update Repository (Container)

Prerequisites

For Argo CD integration, you need the following:

  • Argo CD server running and accessible via HTTP(s)
  • Digital.ai Release Runner setup to run the container tasks

Set up Connection to Argo CD Server

  1. From the navigation pane, under CONFIGURATION, click Connections.
  2. Under HTTP Server connections, next to ArgoCD API Server (Container), click add button. The New ArgoCD API Server (Container) page opens.
  3. In the Title field, enter a name for the configuration.
  4. In the URL field, enter the server URL.
  5. If you want to connect to the server, without validating the TLS certificate, select the Insecure checkbox.
  6. In the CA field, enter the trusted root certificate for server in base64 format.
  7. In the Authentication Method field, select your relevant authentication type from the drop-down list.
  • PAT
  • Basic
  1. For Basic, you can enter Username and Password.
  2. For PAT, you can enter the Password.
  3. To test the connection, click Test.
  4. To save the configuration, click Save.

Create Argo CD server

Create Project (Container)

The Create Project (Container) task creates a project in Argo CD.

  1. In the release flow tab of a Release template, add a task of type Argocd > Create Project (Container).
  2. Click the added task to open it.
  3. In the Capabilities field, enter a value that matches the capability set for your Runner. This will help you to route jobs to that particular Runner.
  4. In the Server field, select the configured Argo CD server.
  5. In the Project Name field, enter the name of the project that you want to create in lowercase.
  6. In the Description field, enter the description of the project.
  7. In the Source Repositories field, you can add the URLs of the GIT repositories.
  8. If you select the Upsert toggle, ArgoCD will attempt to update the project if it already exists.

Create Project (Container)

Check Application Status (Container)

The Check Application Status (Container) task allows you to check the status of the application.

  1. In the release flow tab of a Release template, add a task of type Argocd > Check Application Status (Container).
  2. Click the added task to open it.
  3. In the Capabilities field, enter a value that matches the capability set for your Runner. This will help you to route jobs to that particular Runner.
  4. In the Server field, select the configured Argo CD server.
  5. In the Application Name field, enter the name of the application.
  6. In the Retry field, enter a value to define the number of times you want to retry to check the status.
  7. In the Delay field, enter a value to define the duration between each retry attempt.

Check Application Status (Container)