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/02 17:16:20 UTC
[camel-kamelets] branch nats-source created (now 4d04e20)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch nats-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
at 4d04e20 Regen
This branch includes the following new commits:
new 41af05a Added NATS Source Kamelet
new 4d04e20 Regen
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.
[camel-kamelets] 01/02: Added NATS Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch nats-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 41af05a87a0020f2831254306e1eccce3055c4f0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 2 18:07:33 2021 +0100
Added NATS Source Kamelet
---
nats-source.kamelet.yaml | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/nats-source.kamelet.yaml b/nats-source.kamelet.yaml
new file mode 100644
index 0000000..bcc3f76
--- /dev/null
+++ b/nats-source.kamelet.yaml
@@ -0,0 +1,40 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: nats-source
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NDQuMiIgaGVpZ2h0PSIxODEuODEiIHZpZXdCb3g9IjAgMCA3NDQuMiAxODEuODEiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMjlhOWRlO30uY2xzLTJ7ZmlsbDojZmZmO30uY2xzLTN7ZmlsbDojMzNhNjc1O30uY2xzLTR7ZmlsbDojMzY1YzkzO30uY2xzLTV7ZmlsbDojOGRjMzQxO308L3N0eWxlPjwvZGVmcz48dGl0bGU+bmF0cy1sb2dvLWZyZWVsb2dvdmVjdG9ycy5uZXQ8L3RpdGxlPjxwYXRoIGNsYXNzPSJjbHMtMS [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "NATS Source"
+ description: |-
+ Receive data from NATS topics.
+ required:
+ - topic
+ - servers
+ properties:
+ topic:
+ title: Topic name
+ description: NATS Topic name
+ type: string
+ brokers:
+ title: servers
+ description: Comma separated list of NATS Servers
+ type: string
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "nats:{{topic}}"
+ parameters:
+ servers: "{{servers}}"
+ steps:
+ - marshal:
+ json: {}
+ - to: "kamelet:sink"
[camel-kamelets] 02/02: Regen
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch nats-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 4d04e20194a508553045f97e4a2b59b03c3cd9ff
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 2 18:15:54 2021 +0100
Regen
---
.../ROOT/assets/images/kamelets/nats-source.svg | 1 +
docs/modules/ROOT/nav.adoc | 1 +
docs/modules/ROOT/pages/nats-source.adoc | 61 ++++++++++++++++++++++
3 files changed, 63 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/nats-source.svg b/docs/modules/ROOT/assets/images/kamelets/nats-source.svg
new file mode 100644
index 0000000..3202edd
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/nats-source.svg
@@ -0,0 +1 @@
+<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="744.2" height="181.81" viewBox="0 0 744.2 181.81"><defs><style>.cls-1{fill:#29a9de;}.cls-2{fill:#fff;}.cls-3{fill:#33a675;}.cls-4{fill:#365c93;}.cls-5{fill:#8dc341;}</style></defs><title>nats-logo-freelogovectors.net</title><path class="cls-1" d="M2.9,284.1H178c-.06,47.35.08,94.72-.07,142.07-19.05,0-38.1,0-57.14,0-.24,13.25-.06,26.5-.09,39.75q-21.45-19.8-42.83-39.67c-25-.17-50,0-75-.08v-142m28.05,33c0,25.43.0 [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index ac5f464..4ca8d63 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -9,6 +9,7 @@
* xref:ROOT:mail-imap-source.adoc[image:kamelets/mail-imap-source.svg[] Mail IMAP Source]
* xref:ROOT:minio-source.adoc[image:kamelets/minio-source.svg[] Minio Source]
* xref:ROOT:mqtt-source.adoc[image:kamelets/mqtt-source.svg[] MQTT Source]
+* xref:ROOT:nats-source.adoc[image:kamelets/nats-source.svg[] NATS Source]
* xref:ROOT:salesforce-source.adoc[image:kamelets/salesforce-source.svg[] Salesforce Source]
* xref:ROOT:slack-source.adoc[image:kamelets/slack-source.svg[] Slack Source]
* xref:ROOT:telegram-source.adoc[image:kamelets/telegram-source.svg[] Telegram Source]
diff --git a/docs/modules/ROOT/pages/nats-source.adoc b/docs/modules/ROOT/pages/nats-source.adoc
new file mode 100644
index 0000000..bfc57d9
--- /dev/null
+++ b/docs/modules/ROOT/pages/nats-source.adoc
@@ -0,0 +1,61 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/nats-source.svg[] NATS Source
+
+*Provided by: "Apache Software Foundation"*
+
+Receive data from NATS topics.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `nats-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *topic {empty}* *| Topic name| NATS Topic name| string| |
+| brokers| servers| Comma separated list of NATS Servers| string| |
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `nats-source` can be used in various contexts.
+
+=== Knative Source
+
+The `nats-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.nats-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: nats-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: nats-source
+ properties:
+ topic: "The Topic name"
+ 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 `nats-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 nats-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT