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/05/24 09:41:22 UTC
[camel-kamelets] branch nats-sink created (now f45f1f0)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch nats-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
at f45f1f0 Added NATS Sink Kamelet
This branch includes the following new commits:
new 936ff73 Added NATS Sink Kamelet
new 21eae6e Added NATS Sink Kamelet to catalog
new 2d5a4ee Added NATS Sink Kamelet
new 8d62ce7 Added NATS Sink Kamelet
new c3f6e27 Added NATS Sink Kamelet
new 94760a6 Added NATS Sink Kamelet
new f45f1f0 Added NATS Sink Kamelet
The 7 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] 02/07: Added NATS Sink Kamelet to catalog
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch nats-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 21eae6e01b86db872b89972515f9e5064f27137a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:37:55 2021 +0200
Added NATS Sink Kamelet to catalog
---
.../main/resources/kamelets/nats-sink.kamelet.yaml | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml
new file mode 100644
index 0000000..3728fe6
--- /dev/null
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml
@@ -0,0 +1,39 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: nats-sink
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NDQuMiIgaGVpZ2h0PSIxODEuODEiIHZpZXdCb3g9IjAgMCA3NDQuMiAxODEuODEiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMjlhOWRlO30uY2xzLTJ7ZmlsbDojZmZmO30uY2xzLTN7ZmlsbDojMzNhNjc1O30uY2xzLTR7ZmlsbDojMzY1YzkzO30uY2xzLTV7ZmlsbDojOGRjMzQxO308L3N0eWxlPjwvZGVmcz48dGl0bGU+bmF0cy1sb2dvLWZyZWVsb2dvdmVjdG9ycy5uZXQ8L3RpdGxlPjxwYXRoIGNsYXNzPSJjbHMtMS [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "NATS"
+ labels:
+ camel.apache.org/kamelet.type: "sink"
+spec:
+ definition:
+ title: "NATS Source"
+ description: |-
+ Send data to NATS topics.
+ required:
+ - topic
+ - servers
+ type: object
+ properties:
+ topic:
+ title: Topic
+ description: NATS Topic name
+ type: string
+ servers:
+ title: Servers
+ description: Comma separated list of NATS Servers
+ type: string
+ dependencies:
+ - "camel:nats"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "nats:{{topic}}"
+ parameters:
+ servers: "{{servers}}"
[camel-kamelets] 06/07: Added NATS Sink 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-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 94760a609033cd345fb341260b7090e2674cf423
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:40:02 2021 +0200
Added NATS Sink Kamelet
---
.../src/main/resources/kamelets/nats-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml
index 3728fe6..3d017d4 100644
--- a/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/nats-sink.kamelet.yaml
@@ -10,7 +10,7 @@ metadata:
camel.apache.org/kamelet.type: "sink"
spec:
definition:
- title: "NATS Source"
+ title: "NATS Sink"
description: |-
Send data to NATS topics.
required:
[camel-kamelets] 05/07: Added NATS Sink 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-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit c3f6e27c0a61053a8d83725cfdd78c242eb35e0e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:39:30 2021 +0200
Added NATS Sink Kamelet
---
nats-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nats-sink.kamelet.yaml b/nats-sink.kamelet.yaml
index 3728fe6..3d017d4 100644
--- a/nats-sink.kamelet.yaml
+++ b/nats-sink.kamelet.yaml
@@ -10,7 +10,7 @@ metadata:
camel.apache.org/kamelet.type: "sink"
spec:
definition:
- title: "NATS Source"
+ title: "NATS Sink"
description: |-
Send data to NATS topics.
required:
[camel-kamelets] 01/07: Added NATS Sink 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-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 936ff73f8e0cc47d45dbbaddc4127e82d8e81d93
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:36:55 2021 +0200
Added NATS Sink Kamelet
---
nats-sink.kamelet.yaml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/nats-sink.kamelet.yaml b/nats-sink.kamelet.yaml
new file mode 100644
index 0000000..3728fe6
--- /dev/null
+++ b/nats-sink.kamelet.yaml
@@ -0,0 +1,39 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: nats-sink
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NDQuMiIgaGVpZ2h0PSIxODEuODEiIHZpZXdCb3g9IjAgMCA3NDQuMiAxODEuODEiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMjlhOWRlO30uY2xzLTJ7ZmlsbDojZmZmO30uY2xzLTN7ZmlsbDojMzNhNjc1O30uY2xzLTR7ZmlsbDojMzY1YzkzO30uY2xzLTV7ZmlsbDojOGRjMzQxO308L3N0eWxlPjwvZGVmcz48dGl0bGU+bmF0cy1sb2dvLWZyZWVsb2dvdmVjdG9ycy5uZXQ8L3RpdGxlPjxwYXRoIGNsYXNzPSJjbHMtMS [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "NATS"
+ labels:
+ camel.apache.org/kamelet.type: "sink"
+spec:
+ definition:
+ title: "NATS Source"
+ description: |-
+ Send data to NATS topics.
+ required:
+ - topic
+ - servers
+ type: object
+ properties:
+ topic:
+ title: Topic
+ description: NATS Topic name
+ type: string
+ servers:
+ title: Servers
+ description: Comma separated list of NATS Servers
+ type: string
+ dependencies:
+ - "camel:nats"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "nats:{{topic}}"
+ parameters:
+ servers: "{{servers}}"
[camel-kamelets] 07/07: Added NATS Sink 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-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f45f1f0de5aa1035e082d557b7a2f702dee8dce4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:40:51 2021 +0200
Added NATS Sink Kamelet
---
docs/modules/ROOT/nav.adoc | 2 +-
docs/modules/ROOT/pages/nats-sink.adoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index b339977..3e21e8c 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -63,7 +63,7 @@
* xref:ROOT:minio-sink.adoc[image:kamelets/minio-sink.svg[] Minio Sink]
* 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-sink.adoc[image:kamelets/nats-sink.svg[] NATS Source]
+* xref:ROOT:nats-sink.adoc[image:kamelets/nats-sink.svg[] NATS Sink]
* xref:ROOT:nats-source.adoc[image:kamelets/nats-source.svg[] NATS Source]
* xref:ROOT:openai-classification-action.adoc[image:kamelets/openai-classification-action.svg[] OpenAI Classification Action]
* xref:ROOT:openai-completion-action.adoc[image:kamelets/openai-completion-action.svg[] OpenAI Completion Action]
diff --git a/docs/modules/ROOT/pages/nats-sink.adoc b/docs/modules/ROOT/pages/nats-sink.adoc
index ac6bd0d..eacb086 100644
--- a/docs/modules/ROOT/pages/nats-sink.adoc
+++ b/docs/modules/ROOT/pages/nats-sink.adoc
@@ -1,5 +1,5 @@
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
-= image:kamelets/nats-sink.svg[] NATS Source
+= image:kamelets/nats-sink.svg[] NATS Sink
*Provided by: "Apache Software Foundation"*
[camel-kamelets] 04/07: Added NATS Sink 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-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 8d62ce76d58e2c1e12aca2554e8674a4527b6d46
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:38:53 2021 +0200
Added NATS Sink Kamelet
---
.../ROOT/assets/images/kamelets/nats-sink.svg | 1 +
docs/modules/ROOT/pages/nats-sink.adoc | 62 ++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/nats-sink.svg b/docs/modules/ROOT/assets/images/kamelets/nats-sink.svg
new file mode 100644
index 0000000..3202edd
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/nats-sink.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/pages/nats-sink.adoc b/docs/modules/ROOT/pages/nats-sink.adoc
new file mode 100644
index 0000000..ac6bd0d
--- /dev/null
+++ b/docs/modules/ROOT/pages/nats-sink.adoc
@@ -0,0 +1,62 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/nats-sink.svg[] NATS Source
+
+*Provided by: "Apache Software Foundation"*
+
+Send data to NATS topics.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `nats-sink` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *servers {empty}* *| Servers| Comma separated list of NATS Servers| string| |
+| *topic {empty}* *| Topic| NATS Topic name| string| |
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `nats-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `nats-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.nats-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: nats-sink-binding
+spec:
+ source:
+ ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+ sink:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: nats-sink
+ properties:
+ servers: "The Servers"
+ topic: "The Topic"
+
+----
+
+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-sink-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the sink using the following command:
+
+[source,shell]
+----
+kubectl apply -f nats-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
[camel-kamelets] 03/07: Added NATS Sink 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-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 2d5a4ee11a7c8c53211ff878bb74abeb2fedf9fd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon May 24 11:38:37 2021 +0200
Added NATS Sink Kamelet
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index dd5f54c..b339977 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -63,6 +63,7 @@
* xref:ROOT:minio-sink.adoc[image:kamelets/minio-sink.svg[] Minio Sink]
* 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-sink.adoc[image:kamelets/nats-sink.svg[] NATS Source]
* xref:ROOT:nats-source.adoc[image:kamelets/nats-source.svg[] NATS Source]
* xref:ROOT:openai-classification-action.adoc[image:kamelets/openai-classification-action.svg[] OpenAI Classification Action]
* xref:ROOT:openai-completion-action.adoc[image:kamelets/openai-completion-action.svg[] OpenAI Completion Action]