1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- apiVersion: argoproj.io/v1alpha1
- kind: Sensor
- metadata:
- name: github
- namespace: argo-events
- spec:
- template:
- serviceAccountName: argo-events-sa
- dependencies:
- - name: test-dep
- gatewayName: github
- eventName: example
- subscription:
- http:
- port: 9300
- triggers:
- - template:
- name: github-workflow-trigger
- k8s:
- group: argoproj.io
- version: v1alpha1
- resource: workflows
- operation: create
- source:
- resource:
- apiVersion: argoproj.io/v1alpha1
- kind: Workflow
- metadata:
- generateName: github-
- spec:
- serviceAccountName: workflow
- entrypoint: whalesay
- arguments:
- parameters:
- - name: message
- # value will get overridden by the event payload
- value: hello world
- templates:
- - name: whalesay
- inputs:
- parameters:
- - name: message
- container:
- image: docker/whalesay:latest
- command: [cowsay]
- args: ["{{inputs.parameters.message}}"]
- parameters:
- - src:
- dependencyName: test-dep
- dest: spec.arguments.parameters.0.value
|