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 13:14:08 UTC
[camel-kamelets] branch main updated (194a859 -> c8c984b)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
from 194a859 Regen for commit d942c62d74c449f1e54e21c00fd8e04a0527d6ef
new 944bf38 Added Infinispan Source Kamelet
new 76f1e0d Added Infinispan Source Kamelet
new 66834e8 Added Infinispan Source Kamelet
new c8c984b Added Infinispan Source Kamelet
The 4 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:
.../assets/images/kamelets/infinispan-source.svg | 1 +
docs/modules/ROOT/nav.adoc | 1 +
docs/modules/ROOT/pages/infinispan-source.adoc | 68 ++++++++++++++++++
infinispan-source.kamelet.yaml | 80 ++++++++++++++++++++++
4 files changed, 150 insertions(+)
create mode 100644 docs/modules/ROOT/assets/images/kamelets/infinispan-source.svg
create mode 100644 docs/modules/ROOT/pages/infinispan-source.adoc
create mode 100755 infinispan-source.kamelet.yaml
[camel-kamelets] 04/04: Added Infinispan 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit c8c984bdee0207a6fced1700cb7f5a296444977f
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
[camel-kamelets] 02/04: Added Infinispan 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 76f1e0d3d9862428460e1c0208a2b6f1042d8413
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 28 13:43:02 2021 +0200
Added Infinispan Source Kamelet
---
infinispan-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infinispan-source.kamelet.yaml b/infinispan-source.kamelet.yaml
index d87b688..a28f560 100755
--- a/infinispan-source.kamelet.yaml
+++ b/infinispan-source.kamelet.yaml
@@ -6,7 +6,7 @@ metadata:
camel.apache.org/kamelet.type: "source"
annotations:
camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1NTAgMjUwIiB2aWV3Qm94PSI3Nyw4Myw0MTAsOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8cGF0aCBkPSJtMTc4IDEwMi41aDMxM3Y0MWgtMzEzeiIgZmlsbD0ibm9uZSIvPgogPGcgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyI+CiAgPHBhdGggZD0ibTE5My4zIDEzOS40Yy00IDAtNy4yLTEuMi05LjUtMy41cy0zLjQtNS42LTMuNC05LjdjMC00LjIgMS4xLTcuNiAzLjItMTBzNS0zLjYgOC43LTMuNmMzLjQgMCA2Lj [...]
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBpZD0iYXJ0d29yayIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAyNCAyMTUiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMGIyNTQ1O30uY2xzLTJ7ZmlsbDojNTk5ZmM2O308L3N0eWxlPjwvZGVmcz48cmVjdCBjbGFzcz0iY2xzLTEiIHg9IjI5Ny4yNCIgeT0iMS45OCIgd2lkdGg9IjExLjkiIGhlaWdodD0iMTU4LjEyIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMzk1LjI1LDY0Ljg4Yy03LjgxLTkuNDUtMTguOS0xNC4yNC0zMy0xNC4yNC0xMy43NywwLTI0LjczLDQuNzUtMzIuNjQsMTQuMTFWNTIuMzlIMz [...]
spec:
sources:
- content: |-
[camel-kamelets] 03/04: Added Infinispan 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 66834e81b66b95841a2612d6de0e23acd2dd8628
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 28 13:43:15 2021 +0200
Added Infinispan Source 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 e8b6487..36f6042 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -40,6 +40,7 @@
* xref:ROOT:google-sheets-source.adoc[image:kamelets/google-sheets-source.svg[] Google Sheets Source]
* xref:ROOT:http-sink.adoc[image:kamelets/http-sink.svg[] HTTP Sink]
* xref:ROOT:http-source.adoc[image:kamelets/http-source.svg[] HTTP Source]
+* xref:ROOT:infinispan-source.adoc[image:kamelets/infinispan-source.svg[] Infinispan Source]
* xref:ROOT:jira-source.adoc[image:kamelets/jira-source.svg[] Jira Source]
* xref:ROOT:kafka-source.adoc[image:kamelets/kafka-source.svg[] Kafka Source]
* xref:ROOT:mail-imap-source.adoc[image:kamelets/mail-imap-source.svg[] Mail IMAP Source]
[camel-kamelets] 01/04: Added Infinispan 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 944bf3818d9cce93186865e95c0a54ae7a3d95f2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 28 13:41:26 2021 +0200
Added Infinispan Source Kamelet
---
infinispan-source.kamelet.yaml | 80 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/infinispan-source.kamelet.yaml b/infinispan-source.kamelet.yaml
new file mode 100755
index 0000000..d87b688
--- /dev/null
+++ b/infinispan-source.kamelet.yaml
@@ -0,0 +1,80 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: infinispan-source
+ labels:
+ camel.apache.org/kamelet.type: "source"
+ annotations:
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1NTAgMjUwIiB2aWV3Qm94PSI3Nyw4Myw0MTAsOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8cGF0aCBkPSJtMTc4IDEwMi41aDMxM3Y0MWgtMzEzeiIgZmlsbD0ibm9uZSIvPgogPGcgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyI+CiAgPHBhdGggZD0ibTE5My4zIDEzOS40Yy00IDAtNy4yLTEuMi05LjUtMy41cy0zLjQtNS42LTMuNC05LjdjMC00LjIgMS4xLTcuNiAzLjItMTBzNS0zLjYgOC43LTMuNmMzLjQgMCA2Lj [...]
+spec:
+ sources:
+ - content: |-
+ public class InfinispanWorkaround extends org.apache.camel.builder.RouteBuilder {
+ @Override
+ public void configure() throws Exception {
+ getContext().setAutowiredEnabled(false);
+ }
+ }
+ name: InfinispanWorkaround.java
+ definition:
+ title: "Infinispan Source"
+ description: |-
+ Get Events from an Infinispan cache
+ required:
+ - hosts
+ - username
+ - password
+ - hostAddresses
+ properties:
+ hosts:
+ title: Hosts
+ description: Specifies the host of the cache on Infinispan instance
+ type: String
+ default: 1000
+ secure:
+ title: Secure
+ description: If the Infinispan instance is secured or not
+ type: boolean
+ default: true
+ username:
+ title: Username
+ description: Username to connect to Infinispan.
+ type: string
+ password:
+ title: Password
+ description: Password to connect to Infinispan.
+ type: string
+ saslMechanism:
+ title: SASL Mechanism
+ description: The SASL Mechanism to use
+ type: String
+ default: "DIGEST-MD5"
+ securityRealm:
+ title: Security Realm
+ description: Define the security realm to access the infinispan instance
+ type: string
+ default: "default"
+ securityServerName:
+ title: Security Server name
+ description: Define the security server name to access the infinispan instance
+ type: string
+ default: "infinispan"
+ eventTypes:
+ title: ElasticSearch cluster name
+ description: 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
+ type: string
+ flow:
+ from:
+ uri: "kamelet-reify:infinispan:{{cacheName}}"
+ parameters:
+ hosts: "{{hosts}}"
+ secure: "{{secure}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ saslMechanism: "{{saslMechanism}}"
+ securityRealm: "{{securityRealm}}"
+ securityServerName: "{{securityServerName}}"
+ eventTypes: "{{eventTypes}}"
+ steps:
+ - to: kamelet:sink