Interview Prep/GitOps & Argo CD/Progressive Delivery, Image Updater & Notifications

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Progressive Delivery, Image Updater & Notifications