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 7f9057acebb7bd7942fc8bde41ec0b32f5e9d616
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Mar 7 13:40:01 2018 +0100

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

diff --git 
a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/persistent_volumes_claims/KubernetesPersistentVolumesClaimsProducer.java
 
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/persistent_volumes_claims/KubernetesPersistentVolumesClaimsProducer.java
index 5109b8c..8c7fd75 100644
--- 
a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/persistent_volumes_claims/KubernetesPersistentVolumesClaimsProducer.java
+++ 
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/persistent_volumes_claims/KubernetesPersistentVolumesClaimsProducer.java
@@ -98,6 +98,8 @@ public class KubernetesPersistentVolumesClaimsProducer 
extends DefaultProducer {
     protected void doList(Exchange exchange, String operation) throws 
Exception {
         PersistentVolumeClaimList persistentVolumeClaimList = getEndpoint()
                 .getKubernetesClient().persistentVolumeClaims().list();
+        MessageHelper.copyHeaders(exchange.getIn(), exchange.getOut(), true);
+        
         exchange.getOut().setBody(persistentVolumeClaimList.getItems());
     }
 

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

Reply via email to