mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
fix: Notifications on-deployed would now be delivered if sync didn't change the health status of the app in a process (#22203) (#22204)
Signed-off-by: Andrii Korotkov <andrii.korotkov@verkada.com>
This commit is contained in:
@@ -491,8 +491,8 @@ data:
|
||||
send:
|
||||
- app-deployed
|
||||
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).Add(1
|
||||
* time.Minute).Before(time.Parse(app.status.operationState.finishedAt))
|
||||
and app.status.health.status == 'Healthy' and (!time.Parse(app.status.health.lastTransitionTime).Add(1
|
||||
* time.Minute).Before(time.Parse(app.status.operationState.finishedAt)) or time.Parse(app.status.health.lastTransitionTime).Before(time.Parse(app.status.operationState.startedAt)))
|
||||
trigger.on-health-degraded: |
|
||||
- description: Application has degraded
|
||||
oncePer: app.status.operationState?.syncResult?.revision
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- 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).Add(1 * time.Minute).Before(time.Parse(app.status.operationState.finishedAt))
|
||||
- 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).Add(1 * time.Minute).Before(time.Parse(app.status.operationState.finishedAt)) or time.Parse(app.status.health.lastTransitionTime).Before(time.Parse(app.status.operationState.startedAt)))
|
||||
description: Application is synced and healthy. Triggered once per commit.
|
||||
send: [app-deployed]
|
||||
oncePer: app.status.operationState?.syncResult?.revision
|
||||
|
||||
Reference in New Issue
Block a user