mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
fix(notifications-catalog): Add nil check for notifications_catalog triggers (#14795)
* Add nil check for notifications_catalog triggers Signed-off-by: Trung <trung.hoang@pricehubble.com> * Use correct nil check Signed-off-by: Trung <trung.hoang@pricehubble.com> * Add missing catalog generation to makefile Signed-off-by: Trung <trung.hoang@pricehubble.com> * Revert changes to update-manifests.sh Signed-off-by: Trung <trung.hoang@pricehubble.com> --------- Signed-off-by: Trung <trung.hoang@pricehubble.com>
This commit is contained in:
parent
72754d7726
commit
4a7e6ec855
4 changed files with 7 additions and 6 deletions
|
|
@ -513,12 +513,13 @@ data:
|
|||
- description: Application syncing has failed
|
||||
send:
|
||||
- app-sync-failed
|
||||
when: app.status.operationState.phase in ['Error', 'Failed']
|
||||
when: app.status.operationState != nil and app.status.operationState.phase in ['Error',
|
||||
'Failed']
|
||||
trigger.on-sync-running: |
|
||||
- description: Application is being synced
|
||||
send:
|
||||
- app-sync-running
|
||||
when: app.status.operationState.phase in ['Running']
|
||||
when: app.status.operationState != nil and app.status.operationState.phase in ['Running']
|
||||
trigger.on-sync-status-unknown: |
|
||||
- description: Application status is 'Unknown'
|
||||
send:
|
||||
|
|
@ -528,7 +529,7 @@ data:
|
|||
- description: Application syncing has succeeded
|
||||
send:
|
||||
- app-sync-succeeded
|
||||
when: app.status.operationState.phase in ['Succeeded']
|
||||
when: app.status.operationState != nil and app.status.operationState.phase in ['Succeeded']
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
- when: app.status.operationState.phase in ['Error', 'Failed']
|
||||
- when: app.status.operationState != nil and app.status.operationState.phase in ['Error', 'Failed']
|
||||
description: Application syncing has failed
|
||||
send: [app-sync-failed]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
- when: 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]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
- when: app.status.operationState.phase in ['Succeeded']
|
||||
- when: app.status.operationState != nil and app.status.operationState.phase in ['Succeeded']
|
||||
description: Application syncing has succeeded
|
||||
send: [app-sync-succeeded]
|
||||
|
|
|
|||
Loading…
Reference in a new issue