Argo CD Plugin
This topic describes the tasks available with the Argo CD plugin.
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.
- Digital.ai Release 22.0.x or later
- Argo CD Server
- Click the Admin menu from the top navigation bar.
- Select Manage Plugins.
- Search for Argo CD and click Install now.
- Contact Digital.ai Support for the plugin JAR file if it is not available in the Plugin Manager.
- Log on to Digital.ai Release as an Administrator.
- Select Connections from the sidebar navigation menu.
- Click the + icon next to ArgoCD: Server.
Enter the title, Url, username, and password. You can also enter the Argo CD access token if you have one.
- Click Test to verify your connection to the Argo CD server.
- Click Save if the connection is successful.
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
This task lets you create a new git repository.
- The task takes in parameters like the Repo Url, Git Username, Git Password or SSH Key.
- On successful creation, it returns the added repository URL.
This task lets you create an Argo CD Project.
- The task takes in parameters like the Project Name, Source Repositories list and destination cluster and name spaces as a map.
- On successful creation, it returns the created project name.
This task lets you create an Argo CD application from definitions in the provided git repository.
- The task takes in parameters like the source repository url, destination cluster, and name space and sync options.
- On successful creation, it returns the created application name.
This task lets you sync an Argo CD application to the Kubernetes cluster provided.
The task takes in the application name as parameter and returns the sync status.
This task lets you get the sync status an Argo CD application.
This task lets you get the live and desired state manifest file data.
The task takes in the application name and resource name as parameter and returns the manifest file data.
This task is used to wait for the Argo application to move to the expected sync and health status.
The task takes in parameters like the ArgoCD Server, App name, and so on.
This task is used to retrieve the application revision metadata based on the revision ID.
The task takes in parameters like the ArgoCD Server, App name, and Revision.
Note: An input field called Revision is introduced with
GetRevisionMetadatatask. This Revision field is added as an output field in
SyncStatustasks. You can use these revision values in a complete flow context.