Skip to content

Commit

Permalink
and new
Browse files Browse the repository at this point in the history
  • Loading branch information
prashant231203 committed Jan 27, 2025
1 parent 4a9156d commit 0f1c619
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion notifications_catalog/triggers/on-deleted.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- when: app.metadata.deletionTimestamp != nil
description: Application is deleted.
send: [app-deleted]
oncePer: app.metadata.name
oncePer: app.metadata.name
4 changes: 2 additions & 2 deletions notifications_catalog/triggers/on-deployed.yaml
Original file line number Diff line number Diff line change
@@ -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.sync.revision
oncePer: app.status.operationState?.syncResult?.revision
5 changes: 2 additions & 3 deletions notifications_catalog/triggers/on-sync-running.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
- when: app.status.operationState != nil and app.status.operationState?.phase in ['Running']
- when: app.status.operationState != nil and app.status.operationState.phase in ['Running']
description: Application is being synced
send: [app-sync-running]
oncePer: app.status.operationState.syncResult?.revision
send: [app-sync-running]

0 comments on commit 0f1c619

Please sign in to comment.