You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/18 12:35:32 UTC
[camel-kamelets] 01/02: Added File Watch source kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch file-watch
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 90a05d9cd92b7b9034889b61b81a044569ee9507
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 18 13:34:35 2021 +0100
Added File Watch source kamelet
---
file-watch-source.kamelet.yaml | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/file-watch-source.kamelet.yaml b/file-watch-source.kamelet.yaml
new file mode 100644
index 0000000..7471f87
--- /dev/null
+++ b/file-watch-source.kamelet.yaml
@@ -0,0 +1,37 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: file-watch-source
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzY4LjU1MyAzNjguNTUzIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bm [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "File Watch Source"
+ description: |-
+ Receive events related to a file or folder.
+ required:
+ - path
+ - events
+ properties:
+ path:
+ title: The path
+ description: Path of file or folder to watch
+ type: string
+ events:
+ title: The events
+ description: The type of events to consume
+ type: boolean
+ default: "CREATE,MODIFY,DELETE"
+ types:
+ out:
+ mediaType: application/json
+ flow:
+ from:
+ uri: "file-watch:{{path}}"
+ parameters:
+ events: "{{events}}"
+ steps:
+ - to: "kamelet:sink"