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

Multiple Notification alerts email on trigger on-deployed #409

@Rohit-Tanwar

Description

@Rohit-Tanwar

Summary

I've recently set up the Argocd-notification but after enabling the trigger for deployment I keep on getting tons of emails for the same application.

I've tried some combinations to change the below code but it didn't work at all.

Can anyone please suggest what exactly should I set? The requirement is I want only a single notification per deployment only.

Diagnostics

We are using eks 1.21

Argocd:quay.io/argoproj/argocd:v2.1.5
Argocd notification:argocd-notifications:v1.1.0

trigger.on-deployed: |
- description: Application is synced and healthy. Triggered once per commit.
oncePer: app.status.sync.revision
send:
- app-deployed
when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status != 'Healthy'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions