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 <anco...@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