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 3712f218096bd037a955b007b9c043d64649461f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Sep 30 09:40:15 2022 +0200

    Elasticsearch-search-source won't let me define basic authentication
---
 .../main/resources/kamelets/elasticsearch-search-source.kamelet.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
index 13c3d261..048c8c3d 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/elasticsearch-search-source.kamelet.yaml
@@ -93,6 +93,9 @@ spec:
     beans:
       - name: local-es
         type: 
"#class:org.apache.camel.component.elasticsearch.ElasticsearchComponent"
+        properties:
+            user: "{{?user}}"
+            password: "{{?password}}"
     from:
       uri: timer:tick
       parameters:
@@ -110,8 +113,6 @@ spec:
               indexName: "{{indexName}}"
               hostAddresses: "{{hostAddresses}}"
               enableSSL: "{{enableSSL}}"
-              user: "{{?user}}"
-              password: "{{?password}}"
         - marshal:
             json:
               library: Gson

Reply via email to