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/03/19 10:41:04 UTC

[camel-kamelets] branch master updated (684d846 -> 1207414)

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

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


    from 684d846  Kafka source should not marshal to JSON
     new d3597cd  Added SSH Source Kamelet
     new 1207414  Added SSH Source Kamelet

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../ROOT/assets/images/kamelets/ssh-source.svg     |  4 ++
 docs/modules/ROOT/nav.adoc                         |  1 +
 docs/modules/ROOT/pages/ssh-source.adoc            | 68 ++++++++++++++++++++++
 ssh-source.kamelet.yaml                            | 64 ++++++++++++++++++++
 4 files changed, 137 insertions(+)
 create mode 100644 docs/modules/ROOT/assets/images/kamelets/ssh-source.svg
 create mode 100644 docs/modules/ROOT/pages/ssh-source.adoc
 create mode 100644 ssh-source.kamelet.yaml

[camel-kamelets] 01/02: Added SSH Source Kamelet

Posted by nf...@apache.org.
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 d3597cdf47b87d853d3eceae5af3b61948bf255f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 19 11:28:52 2021 +0100

    Added SSH Source Kamelet
---
 ssh-source.kamelet.yaml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/ssh-source.kamelet.yaml b/ssh-source.kamelet.yaml
new file mode 100644
index 0000000..b0533b0
--- /dev/null
+++ b/ssh-source.kamelet.yaml
@@ -0,0 +1,64 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: ssh-source
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNjQgNjQiPgogICAgPHBhdGggZD0iTSA3IDggQyA1LjM0NiA4IDQgOS4zNDYgNCAxMSBMIDQgNTMgQyA0IDU0LjY1NCA1LjM0NiA1NiA3IDU2IEwgNTcgNTYgQyA1OC42NTQgNTYgNjAgNTQuNjU0IDYwIDUzIEwgNjAgMTEgQyA2MCA5LjM0NiA1OC42NTQgOCA1NyA4IEwgNyA4IHogTSA3IDEwIEwgNTcgMTAgQyA1Ny41NTIgMTAgNTggMTAuNDQ4IDU4IDExIEwgNTggNTMgQyA1OCA1My41NTIgNTcuNTUyIDU0IDU3IDU0IEwgNyA1NCBDID [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "SSH Source"
+    description: |-
+      Receive data from SSH session.
+    required:
+      - host
+      - port
+      - username
+      - password
+      - pollCommand
+    properties:
+      host:
+        title: SSH Host
+        description: The SSH Host
+        type: string
+      port:
+        title: SSH Port
+        description: The SSH Port
+        type: string
+        default: 22
+      username:
+        title: The SSH username
+        description: The SSH username to use
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      password:
+        title: The SSH password
+        description: The SSH password to use
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      delay:
+        title: Delay
+        description: Milliseconds before the next poll
+        type: integer
+        default: 500
+      pollCommand:
+        title: The Poll command
+        description: The command to run while polling the SSH session
+        type: string
+        example: date
+  flow:
+    from:
+      uri: "ssh://{{host}}:{{port}}"
+      parameters:
+        username: "{{username}}"
+        password: "{{password}}"
+        delay: "{{delay}}"
+        pollCommand: "{{pollCommand}}"
+      steps:
+      - convert-body-to:
+          type: "java.lang.String"
+      - to: "kamelet:sink"

[camel-kamelets] 02/02: Added SSH Source Kamelet

Posted by nf...@apache.org.
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 1207414fb4fb3475860c63ac74ab25b607b4e140
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 19 11:29:32 2021 +0100

    Added SSH Source Kamelet
---
 .../ROOT/assets/images/kamelets/ssh-source.svg     |  4 ++
 docs/modules/ROOT/nav.adoc                         |  1 +
 docs/modules/ROOT/pages/ssh-source.adoc            | 68 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/ssh-source.svg b/docs/modules/ROOT/assets/images/kamelets/ssh-source.svg
new file mode 100644
index 0000000..8aaa094
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/ssh-source.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+    <path d="M 7 8 C 5.346 8 4 9.346 4 11 L 4 53 C 4 54.654 5.346 56 7 56 L 57 56 C 58.654 56 60 54.654 60 53 L 60 11 C 60 9.346 58.654 8 57 8 L 7 8 z M 7 10 L 57 10 C 57.552 10 58 10.448 58 11 L 58 53 C 58 53.552 57.552 54 57 54 L 7 54 C 6.448 54 6 53.552 6 53 L 6 20 L 47 20 C 47.553 20 48 19.553 48 19 C 48 18.447 47.553 18 47 18 L 6 18 L 6 11 C 6 10.448 6.448 10 7 10 z M 10 12 C 9.447 12 9 12.447 9 13 L 9 15 C 9 15.553 9.447 16 10 16 C 10.553 16 11 15.553 11 15 L 11 13 C 11 12.447 10.5 [...]
+</svg>
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index c51a437..d5095cb 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -22,6 +22,7 @@
 * xref:ROOT:salesforce-source.adoc[image:kamelets/salesforce-source.svg[] Salesforce Source]
 * xref:ROOT:sftp-source.adoc[image:kamelets/sftp-source.svg[] SFTP Source]
 * xref:ROOT:slack-source.adoc[image:kamelets/slack-source.svg[] Slack Source]
+* xref:ROOT:ssh-source.adoc[image:kamelets/ssh-source.svg[] SSH Source]
 * xref:ROOT:telegram-sink.adoc[image:kamelets/telegram-sink.svg[] Telegram Sink]
 * xref:ROOT:telegram-source.adoc[image:kamelets/telegram-source.svg[] Telegram Source]
 * xref:ROOT:timer-source.adoc[image:kamelets/timer-source.svg[] Timer Source]
diff --git a/docs/modules/ROOT/pages/ssh-source.adoc b/docs/modules/ROOT/pages/ssh-source.adoc
new file mode 100644
index 0000000..2424690
--- /dev/null
+++ b/docs/modules/ROOT/pages/ssh-source.adoc
@@ -0,0 +1,68 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/ssh-source.svg[] SSH Source
+
+*Provided by: "Apache Software Foundation"*
+
+Receive data from SSH session.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `ssh-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *host {empty}* *| SSH Host| The SSH Host| string| | 
+| *password {empty}* *| The SSH password| The SSH password to use| string| | 
+| *pollCommand {empty}* *| The Poll command| The command to run while polling the SSH session| string| | `"date"`
+| *port {empty}* *| SSH Port| The SSH Port| string| `22`| 
+| *username {empty}* *| The SSH username| The SSH username to use| string| | 
+| delay| Delay| Milliseconds before the next poll| integer| `500`| 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `ssh-source` can be used in various contexts.
+
+=== Knative Source
+
+The `ssh-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.ssh-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: ssh-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: ssh-source
+    properties:
+      host: "The SSH Host"
+      password: "The The SSH password"
+      pollCommand: "date"
+      username: "The The SSH username"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `ssh-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f ssh-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT