github.com/argoproj/argo-events@v1.9.1/examples/sensors/dependencies-conditions.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: Sensor 3 metadata: 4 name: webhook 5 spec: 6 template: 7 serviceAccountName: operate-workflow-sa 8 # defines list of all events sensor will accept 9 dependencies: 10 - name: test-dep 11 eventSourceName: webhook 12 eventName: example 13 - name: test-dep-foo 14 eventSourceName: webhook 15 eventName: example-foo 16 17 triggers: 18 - template: 19 # Boolean expression contains dependency names to determine whether to execute the trigger or not 20 conditions: "test-dep" 21 conditionsReset: 22 - byTime: 23 # Reset conditions at 23:59 everyday 24 cron: "59 23 * * *" 25 timezone: "America/Los_Angeles" 26 name: webhook-workflow-trigger 27 k8s: 28 operation: create 29 source: 30 resource: 31 apiVersion: argoproj.io/v1alpha1 32 kind: Workflow 33 metadata: 34 generateName: hello-world- 35 spec: 36 entrypoint: whalesay 37 templates: 38 - name: whalesay 39 container: 40 args: 41 - "hello world" 42 command: 43 - cowsay 44 image: "docker/whalesay:latest" 45 - template: 46 # Boolean expression contains dependency names to determine whether to execute the trigger or not 47 conditions: "test-dep-foo" 48 name: webhook-workflow-trigger-2 49 k8s: 50 operation: create 51 source: 52 resource: 53 apiVersion: argoproj.io/v1alpha1 54 kind: Workflow 55 metadata: 56 generateName: hello-world-2- 57 spec: 58 entrypoint: whalesay 59 templates: 60 - name: whalesay 61 container: 62 args: 63 - "hello world" 64 command: 65 - cowsay 66 image: "docker/whalesay:latest"