mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
Stabilize on-deployed notification trigger (#21333)
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
This commit is contained in:
parent
635e592778
commit
9309688a8a
2 changed files with 2 additions and 2 deletions
|
|
@ -491,7 +491,7 @@ data:
|
|||
send:
|
||||
- app-deployed
|
||||
when: app.status.operationState != nil and app.status.operationState.phase in ['Succeeded']
|
||||
and app.status.health.status == 'Healthy'
|
||||
and app.status.health.status == 'Healthy' and !time.Parse(app.status.health.lastTransitionTime).Before(time.Parse(app.status.operationState.finishedAt))
|
||||
trigger.on-health-degraded: |
|
||||
- description: Application has degraded
|
||||
send:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
- when: app.status.operationState != nil and app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy'
|
||||
- when: app.status.operationState != nil and app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy' and !time.Parse(app.status.health.lastTransitionTime).Before(time.Parse(app.status.operationState.finishedAt))
|
||||
description: Application is synced and healthy. Triggered once per commit.
|
||||
send: [app-deployed]
|
||||
oncePer: app.status.operationState?.syncResult?.revision
|
||||
|
|
|
|||
Loading…
Reference in a new issue