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 b7088c2ba480a3a084d2654854eeb346403f4ccb
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Sep 20 15:15:36 2019 +0200

    Regen docs
---
 .../ROOT/pages/kubernetes-config-maps-component.adoc   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git 
a/docs/components/modules/ROOT/pages/kubernetes-config-maps-component.adoc 
b/docs/components/modules/ROOT/pages/kubernetes-config-maps-component.adoc
index 3f31fb2..8875b18 100644
--- a/docs/components/modules/ROOT/pages/kubernetes-config-maps-component.adoc
+++ b/docs/components/modules/ROOT/pages/kubernetes-config-maps-component.adoc
@@ -143,3 +143,21 @@ from("direct:listByLabels").process(new Processor() {
 
 This operation return a List of ConfigMaps from your cluster, using a label 
selector (with key1 and key2, with value value1 and value2)
 
+== Kubernetes ConfigMaps Consumer Example
+
+[source,java]
+--------------------------------------------------------------------------------
+fromF("kubernetes-config-maps://%s?oauthToken=%s&namespace=default&resourceName=test",
 host, authToken).process(new KubernertesProcessor()).to("mock:result");
+
+    public class KubernertesProcessor implements Processor {
+        @Override
+        public void process(Exchange exchange) throws Exception {
+            Message in = exchange.getIn();
+            ConfigMap cm = exchange.getIn().getBody(ConfigMap.class);
+            log.info("Got event with configmap name: " + 
cm.getMetadata().getName() + " and action " + 
in.getHeader(KubernetesConstants.KUBERNETES_EVENT_ACTION));
+        }
+    }
+--------------------------------------------------------------------------------
+
+This consumer will return a list of events on the namespace default for the 
config map test.
+

Reply via email to