-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a9156d
commit 0f1c619
Showing
3 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |