Replies: 2 comments 3 replies
-
It is not easy because Argo CD itself does not really know if it pushed any resource changes or not. Sync operation has unstructured The existing trigger.on-deployed: |
- description: Application is synced and healthy. Triggered once per commit.
oncePer: app.status.operationState.syncResult.revision
send:
- app-deployed
when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status
== 'Healthy' It can be improved to use deployed images, instead of revision hash.
|
Beta Was this translation helpful? Give feedback.
-
Application MUST NOT not be exposed to ArgoCD. Apps are on the left of the CICD workflow. With this approach, you can commit code application code changes, and only affect updates to the hosted envs when a release is made. See "trunk based branching" for more. See this Github action for more. Note: Do not deploy "latest" image tags... It's a red flag against operational maturity. See "build one, deploy many" postures. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to send a notification when a change is made that doesn't have anything to sync? An example would be adding a comment to file. This results in an update to the application, but since there is no functional change, no sync happens. What condition in a trigger should I use to notify on this event when it succeeds?
Beta Was this translation helpful? Give feedback.
All reactions