12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 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:
- 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
|