Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

ArgoCD Email on-health-degraded does not work #414

Open
kaikiat opened this issue Jun 25, 2022 · 0 comments
Open

ArgoCD Email on-health-degraded does not work #414

kaikiat opened this issue Jun 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kaikiat
Copy link

kaikiat commented Jun 25, 2022

Summary

Hi team, argocd does not send an email when the health of the application degrades. However it can still send an email on sync success.

Diagnostics

What Kubernetes provider are you using?
Google Cloud Platform

What version of Argo CD and Argo CD Notifications are you running?

argocd: v2.3.4+ac8b7df
  BuildDate: 2022-05-18T13:06:25Z
  GitCommit: ac8b7df9467ffcc0920b826c62c4b603a7bfed24
  GitTreeState: clean
  GoVersion: go1.17.9
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.4.0+91aefab
  BuildDate: 2022-06-10T17:23:37Z
  GitCommit: 91aefabc5b213a258ddcfe04b8e69bb4a2dd2566
  GitTreeState: clean
  GoVersion: go1.18.3
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v4.4.1 2021-11-11T23:36:27Z
  Helm Version: v3.8.1+g5cb9af4
  Kubectl Version: v0.23.1
  Jsonnet Version: v0.18.0

Config map

 trigger.on-health-degraded: |
    - description: Application has degraded
      send:
      - app-health-degraded
      when: app.status.health.status == 'Degraded'
// No output
kubectl logs argocd-notifications-controller-69bf646f87-mzmqc -n argocd | grep 'Degraded'


argo app list
NAME                      CLUSTER                         NAMESPACE  PROJECT  STATUS   HEALTH    SYNCPOLICY  CONDITIONS  REPO                     PATH                                         TARGET
sgdecoding-online-scaled  https://kubernetes.default.svc  production  default  Synced  Degraded  Auto-Prune  <none>      [email protected]:kaikiat/argo-project.git  /helm/sgdecoding-online-scaled  HEAD

The health is degraded but no email is sent. I am wondering if anyone have any insights / solutions on this issue. Thank you !


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@kaikiat kaikiat added the bug Something isn't working label Jun 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant