You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/04/20 13:45:26 UTC

[camel-kamelets] 01/06: Added Exec Sink Kamelet

This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 5b0c59c9500b9a032fa582548fd25195e0748e7c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 20 14:40:06 2021 +0200

    Added Exec Sink Kamelet
---
 exec-sink.kamelet.yaml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/exec-sink.kamelet.yaml b/exec-sink.kamelet.yaml
new file mode 100644
index 0000000..6236f92
--- /dev/null
+++ b/exec-sink.kamelet.yaml
@@ -0,0 +1,36 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: exec-sink
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: sink
+spec:
+  definition:
+    title: Exec Sink
+    description: |-
+      Execute system commands
+    required:
+      - executable
+      - args
+    properties:
+      executable:
+        title: Executable command
+        description: The command to execute
+        type: string
+      args:
+        title: The arguments
+        description: Arguments to pass to the executables
+        type: string
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - to:
+          uri: "exec:{{executable}}"
+          parameters:
+            args: "{{args}}"
+      - set-body:
+          simple: "${body.stdout}"