camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 02/07: CAMEL-12328 - Headers getting lost after calling kubernetes service accounts list operation
Date Wed, 07 Mar 2018 12:46:02 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 c843261f76c3c5b4c7537fc4bb6f63582125b516
Author: Andrea Cosentino <ancosen@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
acosentino@apache.org.

Mime
View raw message