How do you avoid duplicate notifications?
IntermediateConceptProgressive Delivery, Image Updater & Notifications
Answer
Use oncePer in the trigger condition so a notification is sent once per value of a field, typically the revision:
trigger.on-deployed: |
- when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy'
oncePer: app.status.sync.revision
send: [app-deployed]
The controller records sent notifications in an annotation on the Application, so restarts do not resend.
More on Progressive Delivery, Image Updater & Notifications
What is Argo Rollouts and how does it relate to Argo CD?BeginnerHow does a canary Rollout work without a service mesh or ingress integration?IntermediateWhich traffic routers does Argo Rollouts support?IntermediateDescribe the main canary step types.BeginnerWhat is an AnalysisTemplate, and what providers can it use?IntermediateWhat do `failureLimit`, `inconclusiveLimit` and `consecutiveErrorLimit` mean?Advanced