Argo Event triggered on Argo Rollout promotion #1830
-
Hello All, I want to trigger an HTTP request whenever there is a successful Argo Rollout promotion. Currently, I have the resource event source triggering every time the Rollout resource is updated, but this results in multiple events being sent instead of just one because creating pods, terminating pods, etc. all trigger the UPDATE event for Rollouts. Is there a way I can have Argo Events only send one event when the rollout is completed? I have attached the manifests I'm using below. Rollout
Event Source
Sensor
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
were you able to figure this out? |
Beta Was this translation helpful? Give feedback.
Yeah, I put the filter logic in the Sensor instead of the event source, and filtered the events based on if the rollout resource was updated and if the service pointed to a new replica set (indicating that the rollout switched traffic).
Sensor: