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/04/28 11:43:44 UTC
[camel-kamelets] 04/04: Added Infinispan Source Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch infinispan
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 2d4a8af0dd147311b94bb441e4cd7cce892a8414
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 28 13:43:25 2021 +0200
Added Infinispan Source Kamelet
---
.../assets/images/kamelets/infinispan-source.svg | 1 +
docs/modules/ROOT/pages/infinispan-source.adoc | 68 ++++++++++++++++++++++
2 files changed, 69 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/infinispan-source.svg b/docs/modules/ROOT/assets/images/kamelets/infinispan-source.svg
new file mode 100644
index 0000000..8ebac47
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/infinispan-source.svg
@@ -0,0 +1 @@
+<svg id="artwork" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 215"><defs><style>.cls-1{fill:#0b2545;}.cls-2{fill:#599fc6;}</style></defs><rect class="cls-1" x="297.24" y="1.98" width="11.9" height="158.12"/><path class="cls-1" d="M395.25,64.88c-7.81-9.45-18.9-14.24-33-14.24-13.77,0-24.73,4.75-32.64,14.11V52.39H318.27v107.7h11.37V94.18c0-10,3-18.08,8.82-24.05s13.87-9,23.82-9,18.1,3.46,24.1,10.28c5.74,6.51,8.65,15,8.65,25.18v63.49h11.14V99.43C406.17,85.15,402.49,73.52,395.25,64.88 [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/infinispan-source.adoc b/docs/modules/ROOT/pages/infinispan-source.adoc
new file mode 100644
index 0000000..9bf52aa
--- /dev/null
+++ b/docs/modules/ROOT/pages/infinispan-source.adoc
@@ -0,0 +1,68 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/infinispan-source.svg[] Infinispan Source
+
+*Provided by: "Apache Software Foundation"*
+
+Get Events from an Infinispan cache
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `infinispan-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *hosts {empty}* *| Hosts| Specifies the host of the cache on Infinispan instance| String| `1000`|
+| *password {empty}* *| Password| Password to connect to Infinispan.| string| |
+| *username {empty}* *| Username| Username to connect to Infinispan.| string| |
+| eventTypes| ElasticSearch cluster name| Specifies the set of event types to register by the consumer.Multiple event can be separated by comma. The possible event types are CLIENT_CACHE_ENTRY_CREATED, CLIENT_CACHE_ENTRY_MODIFIED, CLIENT_CACHE_ENTRY_REMOVED, CLIENT_CACHE_ENTRY_EXPIRED, CLIENT_CACHE_FAILOVER| string| |
+| saslMechanism| SASL Mechanism| The SASL Mechanism to use| String| `"DIGEST-MD5"`|
+| secure| Secure| If the Infinispan instance is secured or not| boolean| `true`|
+| securityRealm| Security Realm| Define the security realm to access the infinispan instance| string| `"default"`|
+| securityServerName| Security Server name| Define the security server name to access the infinispan instance| string| `"infinispan"`|
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `infinispan-source` can be used in various contexts.
+
+=== Knative Source
+
+The `infinispan-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.infinispan-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: infinispan-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: infinispan-source
+ properties:
+ password: "The Password"
+ username: "The 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 `infinispan-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 infinispan-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT