camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 06/07: CAMEL-12328 - Headers getting lost after calling kubernetes namespace list operation
Date Wed, 07 Mar 2018 12:46:06 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4691359128ccc805a549033091007ffa747af21e
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Wed Mar 7 13:41:09 2018 +0100

    CAMEL-12328 - Headers getting lost after calling kubernetes namespace list operation
---
 .../component/kubernetes/namespaces/KubernetesNamespacesProducer.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/namespaces/KubernetesNamespacesProducer.java
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/namespaces/KubernetesNamespacesProducer.java
index 0a76126..287282f 100644
--- a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/namespaces/KubernetesNamespacesProducer.java
+++ b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/namespaces/KubernetesNamespacesProducer.java
@@ -93,6 +93,8 @@ public class KubernetesNamespacesProducer extends DefaultProducer {
     protected void doList(Exchange exchange, String operation) throws Exception {
         NamespaceList namespacesList = getEndpoint().getKubernetesClient()
                 .namespaces().list();
+        
+        MessageHelper.copyHeaders(exchange.getIn(), exchange.getOut(), true);
         exchange.getOut().setBody(namespacesList.getItems());
     }
 

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.

Mime
View raw message