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 <anco...@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
acosent...@apache.org.

Reply via email to