minio argo nats face
diff --git a/argo/event-source.yaml b/argo/event-source.yaml
index 11610a0..23ec5ed 100644
--- a/argo/event-source.yaml
+++ b/argo/event-source.yaml
@@ -1,21 +1,48 @@
apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
- name: minio-event-source
+ name: nats-event-source
spec:
- type: "minio"
- minio:
+ type: nats
+ nats:
example:
- bucket:
- name: input
- endpoint: mio-minio.default.svc:9000
- events:
- - s3:ObjectCreated:Put
- - s3:ObjectRemoved:Delete
- insecure: true
- accessKey:
- key: accesskey
- name: artifacts-minio
- secretKey:
- key: secretkey
- name: artifacts-minio
\ No newline at end of file
+ # url of the nats service
+ url: nats://nats.svc:4222
+ # jsonBody specifies that all event body payload coming from this
+ # source will be JSON
+ jsonBody: true
+ # subject name
+ subject: input-objects
+ # optional backoff time for connection retries.
+ # if not provided, default connection backoff time will be used.
+ connectionBackoff:
+ # duration in nanoseconds. following value is 10 seconds
+ duration: 10000000000
+ # how many backoffs
+ steps: 5
+ # factor to increase on each step.
+ # setting factor > 1 makes backoff exponential.
+ factor: 2
+ jitter: 0.2
+
+# apiVersion: argoproj.io/v1alpha1
+# kind: EventSource
+# metadata:
+# name: minio-event-source
+# spec:
+# type: "minio"
+# minio:
+# example:
+# bucket:
+# name: input
+# endpoint: mio-minio.default.svc:9000
+# events:
+# - s3:ObjectCreated:Put
+# - s3:ObjectRemoved:Delete
+# insecure: true
+# accessKey:
+# key: accesskey
+# name: artifacts-minio
+# secretKey:
+# key: secretkey
+# name: artifacts-minio
\ No newline at end of file