# Argo CD Version Tags

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fdeveloper-portal%2Fapis%2Fversion-tags%2Fargo-cd-version-tags.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fdeveloper-portal%2Fapis%2Fversion-tags%2Fargo-cd-version-tags.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

Coralogix provides seamless integration with `Argo CD` so you can push tags to Coralogix automatically from your Argo CD pipelines.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

* Have `Argo CD` installed, for more information on how to install: <https://argo-cd.readthedocs.io/en/stable/getting_started/>

* Have `Argo CD Notifications` and `Triggers and templates` installed, for more information on how to install: <https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/>

* To use this API you need to [create](https://docs-docusaurus.kinsta.page/user-guides/account-management/api-keys/api-keys/.md) a personal or team API key. It’s recommended to use permission presets, as they are automatically updated with all relevant permissions. Alternatively, you can manually add individual permissions.

  | Preset          | Action                                                                                                    | Description                                                                                        |
  | --------------- | --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
  | CICDIntegration | `VERSION-BENCHMARK-TAGS:READ`<br />`VERSION-BENCHMARKS-REPORTS:READ`<br />`VERSION-BENCHMARK-TAGS:UPDATE` | View Version Benchmark Tags<br />View Version Benchmark Reports<br />Modify Version Benchmark Tags |

## [](https://github.com/coralogix/integrations-docs/blob/master/integrations/argocd/README.rst#configuration)Configuration[​](#configuration "Direct link to configuration")

Add the *Coralogix* API Key to **argocd-notifications-secret** Secret:

```
apiVersion: v1

kind: Secret

metadata:

  name: argocd-notifications-secret

type: Opaque

stringData:

  coralogix-api-token: <cx_api_key>
```

Add `webhook`, `template` and `trigger` to **argocd-notifications-cm** ConfigMap. Choose the <!-- -->https\://api./api/v1/external/tags<!-- --> endpoint that corresponds to your Coralogix [domain](https://docs-docusaurus.kinsta.page/user-guides/account-management/account-settings/coralogix-domain/.md) using the domain selector at the top of the page for the `url`.

```
apiVersion: v1

kind: ConfigMap

metadata:

  name: argocd-notifications-cm

data:

  service.webhook.coralogix: |

    url: https://api.eu2.coralogix.com/api/v1/external/tags

    headers:

    - name: Authorization

      value: Bearer $coralogix-api-token

    - name: Content-Type

      value: application/json

  template.coralogix: |

    webhook:

      coralogix:

        method: POST

        body: |

          {

            "name": "{{.app.status.sync.revision}}",

            "application": ["{{.app.spec.project}}"],

            "subsystem": ["{{.app.metadata.name}}"],

            "iconUrl": "https://raw.githubusercontent.com/coralogix/integrations-docs/master/integrations/argocd/images/argocd.png"

          }

  trigger.coralogix-on-success: |

    - when: app.status.operationState.phase in ['Succeeded']

      send: [coralogix]
```

There are 2 ways to publish a patch with the added annotation. Either create a .yml and perform the patch by specifying the patch file or use a command with the patch written into it.

* The .yml file:

```
apiVersion: argoproj.io/v1alpha1

kind: Application

metadata:

  name: <deployed-app-name>

  annotations:

    notifications.argoproj.io/subscribe.coralogix-on-success.coralogix: ""
```

* The command:

```
kubectl patch app <deployed-app-name> -n argocd -p '{"metadata": {"annotations": {"notifications.argoproj.io/subscribe.coralogix-on-success.coralogix": ""}}}' --type merge
```

In Argocd, enter the deployed app in which the notifications were added under the annotations field to check if the patch was successfully created. You will find the Coralogix notification.<br /><!-- -->Each time the application syncs in Argocd, it automatically sends a tag to the Coralogix dashboard.

## Additional resources[​](#additional-resources "Direct link to Additional resources")

|                     |                                                                                                 |
| ------------------- | ----------------------------------------------------------------------------------------------- |
| Coralogix Endpoints | [Coralogix Endpoints](https://docs-docusaurus.kinsta.page/integrations/coralogix-endpoints/.md) |
