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 2023/01/10 17:56:48 UTC
[camel-kamelets] branch main updated (66fa82c4 -> dd1463d5)
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 66fa82c4 Updated CHANGELOG.md
new 8dca5e8c Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
new 9dfad18c Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
new 92d4751f Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
new dd1463d5 Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index 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:
kamelets/elasticsearch-index-sink.kamelet.yaml | 18 +++++++++++++-----
.../kamelets/elasticsearch-index-sink.kamelet.yaml | 18 +++++++++++++-----
2 files changed, 26 insertions(+), 10 deletions(-)
[camel-kamelets] 02/04: Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index 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 9dfad18c54b58cf243540e8f313e4382de3e8ac2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 10 18:50:12 2023 +0100
Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../kamelets/elasticsearch-index-sink.kamelet.yaml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
index f3ccb39f..58d195cb 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
@@ -34,6 +34,8 @@ spec:
The input data must be formatted in JSON according to the requirements of the index.
+ If you specify the `certificate` property, you must base64 encode it before you pass it as a parameter.
+
In the header, you can set the following properties:
- `indexId` / `ce-indexid`: The index ID for ElasticSearch.
@@ -82,22 +84,27 @@ spec:
description: The name of the ElasticSearch index.
type: string
example: data
+ certificate:
+ title: Certificate
+ description: The Certificate for accessing the Elasticsearch cluster. You must encode this value in base64.
+ type: string
+ example: data
types:
out:
- mediaType: application/json
+ mediaType: text/plain
in:
mediaType: application/json
dependencies:
- "camel:core"
- "camel:jackson"
- "camel:kamelet"
- - "camel:elasticsearch-rest"
+ - "camel:elasticsearch"
- "camel:gson"
- "camel:bean"
template:
beans:
- name: local-es
- type: "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
+ type: "#class:org.apache.camel.component.es.ElasticsearchComponent"
properties:
user: "{{?user}}"
password: "{{?password}}"
@@ -128,6 +135,8 @@ spec:
- set-header:
name: "indexName"
simple: "${header[ce-indexname]}"
+ - unmarshal:
+ json: {}
- to:
uri: "{{local-es}}:{{clusterName}}"
parameters:
@@ -135,5 +144,4 @@ spec:
hostAddresses: "{{hostAddresses}}"
enableSSL: "{{enableSSL}}"
indexName: "{{?indexName}}"
- - marshal:
- json: { }
+ certificatePath: "base64:{{?certificatePath}}"
[camel-kamelets] 01/04: Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index 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 8dca5e8c3131e13f97fd663a5cb1accddb6aeb10
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 10 18:49:39 2023 +0100
Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/elasticsearch-index-sink.kamelet.yaml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/kamelets/elasticsearch-index-sink.kamelet.yaml b/kamelets/elasticsearch-index-sink.kamelet.yaml
index f3ccb39f..58d195cb 100644
--- a/kamelets/elasticsearch-index-sink.kamelet.yaml
+++ b/kamelets/elasticsearch-index-sink.kamelet.yaml
@@ -34,6 +34,8 @@ spec:
The input data must be formatted in JSON according to the requirements of the index.
+ If you specify the `certificate` property, you must base64 encode it before you pass it as a parameter.
+
In the header, you can set the following properties:
- `indexId` / `ce-indexid`: The index ID for ElasticSearch.
@@ -82,22 +84,27 @@ spec:
description: The name of the ElasticSearch index.
type: string
example: data
+ certificate:
+ title: Certificate
+ description: The Certificate for accessing the Elasticsearch cluster. You must encode this value in base64.
+ type: string
+ example: data
types:
out:
- mediaType: application/json
+ mediaType: text/plain
in:
mediaType: application/json
dependencies:
- "camel:core"
- "camel:jackson"
- "camel:kamelet"
- - "camel:elasticsearch-rest"
+ - "camel:elasticsearch"
- "camel:gson"
- "camel:bean"
template:
beans:
- name: local-es
- type: "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
+ type: "#class:org.apache.camel.component.es.ElasticsearchComponent"
properties:
user: "{{?user}}"
password: "{{?password}}"
@@ -128,6 +135,8 @@ spec:
- set-header:
name: "indexName"
simple: "${header[ce-indexname]}"
+ - unmarshal:
+ json: {}
- to:
uri: "{{local-es}}:{{clusterName}}"
parameters:
@@ -135,5 +144,4 @@ spec:
hostAddresses: "{{hostAddresses}}"
enableSSL: "{{enableSSL}}"
indexName: "{{?indexName}}"
- - marshal:
- json: { }
+ certificatePath: "base64:{{?certificatePath}}"
[camel-kamelets] 03/04: Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index 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 92d4751f3b3e5d85441736552e88e727ec047feb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 10 18:51:44 2023 +0100
Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/elasticsearch-index-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kamelets/elasticsearch-index-sink.kamelet.yaml b/kamelets/elasticsearch-index-sink.kamelet.yaml
index 58d195cb..96454700 100644
--- a/kamelets/elasticsearch-index-sink.kamelet.yaml
+++ b/kamelets/elasticsearch-index-sink.kamelet.yaml
@@ -144,4 +144,4 @@ spec:
hostAddresses: "{{hostAddresses}}"
enableSSL: "{{enableSSL}}"
indexName: "{{?indexName}}"
- certificatePath: "base64:{{?certificatePath}}"
+ certificatePath: "base64:{{?certificate}}"
[camel-kamelets] 04/04: Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index 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 dd1463d52ff8f4ac26573167d4a76d43b07e4807
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 10 18:52:21 2023 +0100
Elasticsearch Kamelets: Moving from Camel-Elasticsearch-Rest to Camel-Elastichsearch - Index Kamelet
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
index 58d195cb..96454700 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-index-sink.kamelet.yaml
@@ -144,4 +144,4 @@ spec:
hostAddresses: "{{hostAddresses}}"
enableSSL: "{{enableSSL}}"
indexName: "{{?indexName}}"
- certificatePath: "base64:{{?certificatePath}}"
+ certificatePath: "base64:{{?certificate}}"