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

    CAMEL-12328 - Headers getting lost after calling kubernetes service 
accounts list operation
---
 .../kubernetes/service_accounts/KubernetesServiceAccountsProducer.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/service_accounts/KubernetesServiceAccountsProducer.java
 
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/service_accounts/KubernetesServiceAccountsProducer.java
index aedbc4d..873f5de 100644
--- 
a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/service_accounts/KubernetesServiceAccountsProducer.java
+++ 
b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/service_accounts/KubernetesServiceAccountsProducer.java
@@ -96,6 +96,7 @@ public class KubernetesServiceAccountsProducer extends 
DefaultProducer {
     protected void doList(Exchange exchange, String operation) throws 
Exception {
         ServiceAccountList saList = 
getEndpoint().getKubernetesClient().serviceAccounts().inAnyNamespace()
                 .list();
+        MessageHelper.copyHeaders(exchange.getIn(), exchange.getOut(), true);
         exchange.getOut().setBody(saList.getItems());
     }
 

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

Reply via email to