github.com/argoproj/argo-events@v1.9.1/examples/sensors/custom-trigger.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: Sensor 3 metadata: 4 name: webhook 5 spec: 6 dependencies: 7 - name: test-dep 8 eventSourceName: webhook 9 eventName: example 10 triggers: 11 - template: 12 name: webhook-workflow-trigger 13 custom: 14 # the url of the trigger server. 15 serverURL: tekton-trigger.argo-events.svc:9000 16 # spec is map of string->string and it is sent over to trigger server. 17 # the spec can be anything you want as per your use-case, just make sure the trigger server understands the spec map. 18 spec: 19 url: "https://raw.githubusercontent.com/VaibhavPage/tekton-cd-trigger/master/example.yaml" 20 # These parameters are applied on resource fetched and returned by the trigger server. 21 # e.g. consider a trigger server which invokes TektonCD pipeline runs, then 22 # the trigger server can return a TektonCD PipelineRun resource. 23 # The parameters are then applied on that PipelineRun resource. 24 parameters: 25 - src: 26 dependencyName: test-dep 27 dataKey: body.namespace 28 dest: metadata.namespace 29 # These parameters are applied on entire template body. 30 # So that you can parameterize anything under `custom` key such as `serverURL`, `spec` etc. 31 parameters: 32 - src: 33 dependencyName: test-dep 34 dataKey: body.url 35 dest: custom.spec.url