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


The following commit(s) were added to refs/heads/master by this push:
     new 68ac801  Regen docs
68ac801 is described below

commit 68ac801db544d026854e1339f17f122faf1fa06e
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Sep 20 13:12:08 2019 +0200

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

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 be51d84..3f31fb2 100644
--- a/docs/components/modules/ROOT/pages/kubernetes-config-maps-component.adoc
+++ b/docs/components/modules/ROOT/pages/kubernetes-config-maps-component.adoc
@@ -110,5 +110,36 @@ The component supports 2 options, which are listed below.
 - createConfigMap
 - deleteConfigMap
 
-
+== Kubernetes ConfigMaps Producer Examples
+
+- listConfigMaps: this operation copy an object from one bucket to a different 
one
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:list").
+    
to("kubernetes-config-maps:///?kubernetesClient=#kubernetesClient&operation=listConfigMaps").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of ConfigMaps from your cluster
+
+- listConfigMapsByLabels: this operation copy an object from one bucket to a 
different one
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:listByLabels").process(new Processor() {
+
+            @Override
+            public void process(Exchange exchange) throws Exception {
+                Map<String, String> labels = new HashMap<>();
+                labels.put("key1", "value1");
+                labels.put("key2", "value2");
+                
exchange.getIn().setHeader(KubernetesConstants.KUBERNETES_CONFIGMAPS_LABELS, 
labels);
+            }
+        });
+    
to("kubernetes-config-maps:///?kubernetesClient=#kubernetesClient&operation=listConfigMapsByLabels").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of ConfigMaps from your cluster, using a label 
selector (with key1 and key2, with value value1 and value2)
 

Reply via email to