argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.77k stars 5.42k forks source link

Argo CD unsynced Argo Rollouts Analysis Template Datadog Provider Version v2 #14400

Closed santiagorodpeya closed 1 year ago

santiagorodpeya commented 1 year ago

Checklist:

Describe the bug

Argo CD always show unsync status of the application with Argo Rollouts Analysis Template after tying to apply the sync option manually or with CI/CD process. Using Datadog Provider with version v2 is not applying the change. The application in Argo CD is deployed with Helm Chart.

Example of Analysis Template configuration:

apiVersion: argoproj.io/v1alpha1
kind: AnalysisTemplate
metadata:
  name: app-name-analysis
spec:
  args:
  - name: app-name
  metrics:
    - name: analysis-name
      interval: 15m
      successCondition: result < 20
      failureLimit: 5
      provider:
        datadog:
          interval: 1m
          version: v2
          query: |
             sum:trace.http.request.errors{service:app-name}.as_rate().rollup(sum, 60)

To Reproduce

Try to sync application to K8s cluster manually or proper CI/CD flow. This will never happend, tries to apply but the configuration in K8s cluster still remaining without the version: v2 for the provider and showing the application unsynced status.

Expected behavior

Apply the Datadog provider version to v2 version in the K8s cluster application.

Screenshots

ArgoCD2 ArgoCD

Version

Argo CD Version: v2.7.6+00c914a.dirty
Argo Rollouts Version: v1.5.1+839f05d

Logs

Don´t know how to check the logs for this kind of issue.
santiagorodpeya commented 1 year ago

The issue was with the line version instead apiVersion Sorry for the inconvinience.