blob: 23ec5ed547e465d655da165d07bd20e9f376abae [file] [log] [blame]
giolekva892a4e22020-04-27 16:46:22 +04001apiVersion: argoproj.io/v1alpha1
2kind: EventSource
3metadata:
4 name: nats-event-source
5spec:
6 type: nats
7 nats:
8 example:
9 # url of the nats service
10 url: nats://nats.svc:4222
11 # jsonBody specifies that all event body payload coming from this
12 # source will be JSON
13 jsonBody: true
14 # subject name
15 subject: input-objects
16 # optional backoff time for connection retries.
17 # if not provided, default connection backoff time will be used.
18 connectionBackoff:
19 # duration in nanoseconds. following value is 10 seconds
20 duration: 10000000000
21 # how many backoffs
22 steps: 5
23 # factor to increase on each step.
24 # setting factor > 1 makes backoff exponential.
25 factor: 2
26 jitter: 0.2
27
28# apiVersion: argoproj.io/v1alpha1
29# kind: EventSource
30# metadata:
31# name: minio-event-source
32# spec:
33# type: "minio"
34# minio:
35# example:
36# bucket:
37# name: input
38# endpoint: mio-minio.default.svc:9000
39# events:
40# - s3:ObjectCreated:Put
41# - s3:ObjectRemoved:Delete
42# insecure: true
43# accessKey:
44# key: accesskey
45# name: artifacts-minio
46# secretKey:
47# key: secretkey
48# name: artifacts-minio