Connect to Argo CD
After you connect Argo CD applications to a Digital Employee, conversations and long-running tasks can access the sync status, health status, resources, and runtime logs of these applications within the selected scope. In addition to querying data, the Digital Employee can run write operations such as syncing, rolling back, and deleting resources on these applications.
The Argo CD connector uses an Environment Agent to run the Argo CD command line interface that is installed and authenticated on the bound machine. The credentials are stored on the machine and are not required when you configure the connector. STAROps does not collect or store these credentials.
Usage notes
Before you connect Argo CD applications to a Digital Employee, take note of the following items:
Read and write operations — In addition to data queries, the connector supports write operations such as syncing, rolling back, and deleting resources.
Capability boundary — What the Digital Employee can query and operate is limited to what the Argo CD command line interface on the bound machine supports and what the permissions of the logon identity allow. Even if you select all applications in the scope, the actual accessible scope remains subject to the permissions of the logon identity on the machine.
Write operations directly affect workloads in the destination cluster, with the same effect as running the commands yourself on the machine. Before you ask the Digital Employee to perform a write operation, verify each of the following items: the application, the target revision, and the resources to be operated on. Proceed with caution.
Prerequisites
A Digital Employee is created.
An Environment Agent is created and bound to a machine, and the machine status is Online. Each Environment Agent is bound to one machine.
The
bashcapability is declared incapabilities.jsonon the machine. When you run the Environment Agent installation command to enable the built-in bash capability, this declaration is written automatically.The Argo CD command line interface is installed on the machine, and you are logged on to the target Argo CD service on the machine.
The machine can access the address of the target Argo CD service.
For instructions about how to activate an Environment Agent, connect a machine, and declare capabilities, see Environment agent. For instructions about how to install the Argo CD command line interface, see CLI Installation in the official Argo CD documentation.
The Digital Employee runs commands on the machine as the user who ran the Environment Agent installation command. Use a dedicated account with appropriate permissions.
Add an Argo CD connector
To add an Argo CD connector, perform the following steps:
1. Open Pipeline
Click Settings > Connectors > Pipeline.
2. Select Argo CD
Click Add pipeline.
Select Argo CD.
Click Next.
3. Enter connector information
Enter the Connector ID. The ID uniquely identifies the connector and cannot be modified after creation. It must be 1 to 64 characters long, contain only lowercase letters, digits, and hyphens, start with a letter, and end with a letter or digit.
Enter the Name. The name distinguishes connectors in the list.
4. Select an Environment Agent and scope
This connector does not provide a credential input field. Make sure that you are logged on to Argo CD on the machine as described in Prerequisites.
Select the Environment Agent that runs Argo CD commands and make sure that it has the bash capability. You cannot proceed if the selected Environment Agent is offline.
After you select an Environment Agent, Scope appears. Select the Argo CD applications that this connector can access. Applications are grouped by project. You can select all applications or specify individual applications.
(Recommended) Select the smallest scope that meets your needs.
If you have a large number of applications, select applications by project group.
Applications outside the selected scope do not appear in access results.
After you confirm the scope, click Next.
5. Install Skill
Install starops-argocd-operation, the Argo CD operation Skill that this connector requires. If this Skill is not installed, the Digital Employee cannot query Argo CD data in conversations and long-running tasks. For the list of queryable data, see Available data. You can verify that the Skill is installed in the Check and add step.
6. Configure data modeling
The following data modeling options are available:
Basic modeling — After the connector is created, the selected applications and their basic relationships are modeled.
Agentic relationship exploration — (Optional) After basic modeling, this option explores cross-source relationships with applications, infrastructure, observable data, and more. Modeling starts conversations and is billed based on the selected model and actual usage. Enable this option only if cross-source relationship analysis is required.
You can verify the modeling configuration in the Check and add step.
7. Check and save
In Check and add, verify the connector ID, Environment Agent, scope, installed Skill, and modeling configuration, and then click Save.
After you save, the system checks the connection status, and the connector appears in the Pipeline list. For details about the status check, see Connection check. To verify that the connector is added successfully, see Verification.
Connection check
The Argo CD connector checks the runtime of the Environment Agent and the machine capabilities. It does not check the logon status of the Argo CD command line interface.
Check item | Description |
Runtime status | Indicates whether the Environment Agent is online and can run commands on the bound machine. |
Machine capabilities | Indicates whether the bash capability is declared on the machine. |
A status of Succeeded only indicates that the Environment Agent and its capabilities are available. If the logon token on the machine expires, the status may still show Succeeded, but queries in conversations return a message indicating that the request is unauthenticated or the token is invalid. Log on again on the machine and try again.
Available data
After the Argo CD connection succeeds, conversations and long-running tasks can query the following data:
Applications — The application list and details, including sync status and health status.
Application events — Event records related to applications.
Application resources — The resource tree, the list of resources managed by applications, and resource configurations.
Resource events and actions — Event records of a single resource, and the list of actions that can currently be performed on the resource. Argo CD returns the action list based on the resource type and the permissions of the logon identity.
Workload logs — Runtime logs of workloads in applications.
Projects and clusters — AppProject configurations and the list of destination clusters.
Verification
To verify that the Argo CD connector is added successfully, perform the following checks:
In the Pipeline list, verify that the name, type (Argo CD), status (Succeeded), Environment Agent, and scope of the connector are consistent with what you configured.
Click View details and verify the Environment Agent and scope.
In a conversation, ask "What are the sync status and health status of the applications in Argo CD?" and verify that data for the selected applications is returned.
FAQ
The status is Succeeded, but an authentication failure is reported in a conversation
A Succeeded status does not indicate that the Argo CD logon on the machine is valid. For details about what the connector checks, see Connection check. If a conversation returns a message indicating that the request is unauthenticated or that the token is invalid or expired, log on to Argo CD again on the machine where the Environment Agent is located and try again. In this case, the Digital Employee reports the actual cause of the failure instead of an inferred application status.
An application cannot be found in a conversation
Check the following items in order:
The Environment Agent is Online.
The target application is within the scope or the selected group.
The logon identity on the machine has read permissions for the application.
No actions are available for a resource
If the action list of a resource is empty, verify on the machine that the logon identity has the required permissions for the resource.
A message indicating that the Connector ID already exists appears when you save the connector
Change the Connector ID and try again.
The connector status is Failed
Click Refresh status to recheck the connection. If the status remains Failed, delete the connector and create a new one. For more information, see Troubleshoot connector issues.