forked from vfarcic/argo-events-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensor.yaml
39 lines (39 loc) · 951 Bytes
/
sensor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
name: webhook
spec:
template:
serviceAccountName: argo-events-sa
dependencies:
- name: payload
eventSourceName: webhook
eventName: devops-toolkit
triggers:
- template:
name: payload
k8s:
group: ""
version: v1
resource: pods
operation: create
source:
resource:
apiVersion: v1
kind: Pod
metadata:
generateName: payload-
labels:
app: payload
spec:
containers:
- name: hello
image: alpine
command: ["echo"]
args: ["This is the message you sent me:\n", ""]
restartPolicy: Never
parameters:
- src:
dependencyName: payload
dataKey: body.message
dest: spec.containers.0.args.1