Skip to content

Argo Event triggered on Argo Rollout promotion #1830

Discussion options

You must be logged in to vote

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:

kind: Sensor
metadata:
  name: my-sensor
  namespace: default
  labels:
    app: my-app
  annotations:
    sidecar.istio.io/inject: 'false'
  finalizers:
    - sensor-controller
spec:
  dependencies:
    - eventName: event-source
      eventSourceName: my-app-rollout-event-source
      name: rollout
    - eventName: event-source
      eventSourceName: my-app-service-event-source
      filters:
        data:
          - path: body.metadata.name
    …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jay-jinjuwadia
Comment options

Answer selected by jay-jinjuwadia
@erez-levi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants