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/02 17:51:25 UTC
[camel-kamelets] branch master updated (ffd0426 -> 013d903)
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 ffd0426 Added Kafka Source Kamelet
new 8f1c10c Added NATS Source Kamelet
new a1a1cb5 Regen
new 013d903 NATS Source: Fixed topic name
The 3 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/nats-source.svg | 1 +
docs/modules/ROOT/nav.adoc | 1 +
.../{bitcoin-source.adoc => nats-source.adoc} | 25 ++++++++------
nats-source.kamelet.yaml | 40 ++++++++++++++++++++++
4 files changed, 56 insertions(+), 11 deletions(-)
create mode 100644 docs/modules/ROOT/assets/images/kamelets/nats-source.svg
copy docs/modules/ROOT/pages/{bitcoin-source.adoc => nats-source.adoc} (58%)
create mode 100644 nats-source.kamelet.yaml
[camel-kamelets] 02/03: Regen
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 a1a1cb53772672ad85a44178bb90b7a929ea0c95
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
[camel-kamelets] 03/03: NATS Source: Fixed topic name
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 013d9033243d7126cdcbc39a0841d71951070b40
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 2 18:17:41 2021 +0100
NATS Source: Fixed topic name
---
docs/modules/ROOT/pages/nats-source.adoc | 4 ++--
nats-source.kamelet.yaml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/modules/ROOT/pages/nats-source.adoc b/docs/modules/ROOT/pages/nats-source.adoc
index bfc57d9..cd6afec 100644
--- a/docs/modules/ROOT/pages/nats-source.adoc
+++ b/docs/modules/ROOT/pages/nats-source.adoc
@@ -11,7 +11,7 @@ The following table summarizes the configuration options available for the `nats
[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| |
+| *topic {empty}* *| topic| NATS Topic name| string| |
| brokers| servers| Comma separated list of NATS Servers| string| |
|===
@@ -39,7 +39,7 @@ spec:
apiVersion: camel.apache.org/v1alpha1
name: nats-source
properties:
- topic: "The Topic name"
+ topic: "The topic"
sink:
ref:
kind: InMemoryChannel
diff --git a/nats-source.kamelet.yaml b/nats-source.kamelet.yaml
index bcc3f76..ed5ee90 100644
--- a/nats-source.kamelet.yaml
+++ b/nats-source.kamelet.yaml
@@ -17,7 +17,7 @@ spec:
- servers
properties:
topic:
- title: Topic name
+ title: topic
description: NATS Topic name
type: string
brokers:
[camel-kamelets] 01/03: Added NATS 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 8f1c10c99b3213c8428eb5fbd651a0418069c7b2
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"