You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by va...@apache.org on 2022/01/12 15:19:37 UTC

[camel-kamelets] branch main updated: fix #701: elasticsearch-index-sink has no way to set username and password

This is an automated email from the ASF dual-hosted git repository.

valdar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


The following commit(s) were added to refs/heads/main by this push:
     new 60d7ed7  fix #701: elasticsearch-index-sink has no way to set username and password
60d7ed7 is described below

commit 60d7ed7aa136dcd1e0b2792c76a9e5bad214a528
Author: Andrea Tarocchi <an...@tarocch.it>
AuthorDate: Wed Jan 12 16:19:30 2022 +0100

    fix #701: elasticsearch-index-sink has no way to set username and password
---
 kamelets/elasticsearch-index-sink.kamelet.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/kamelets/elasticsearch-index-sink.kamelet.yaml b/kamelets/elasticsearch-index-sink.kamelet.yaml
index 14cff85..db4761f 100644
--- a/kamelets/elasticsearch-index-sink.kamelet.yaml
+++ b/kamelets/elasticsearch-index-sink.kamelet.yaml
@@ -97,6 +97,9 @@ spec:
     beans:
       - name: local-es
         type: "#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
+        properties:
+            user: "{{user:dummy}}"
+            password: "{{password:dummy}}"
     from:
       uri: kamelet:source
       steps:
@@ -130,8 +133,6 @@ spec:
             operation: "INDEX"
             hostAddresses: "{{hostAddresses}}"
             enableSSL: "{{enableSSL}}"
-            user: "{{?user}}"
-            password: "{{?password}}"
             indexName: "{{?indexName}}"
       - marshal:
           json: { }