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 e78994f46acdadca5e40e42cbda0a1bd37397af1
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Sep 24 12:16:26 2019 +0200

    Camel-Kubernetes: Added sample code for Resource Quotas component
---
 .../docs/kubernetes-resources-quota-component.adoc | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git 
a/components/camel-kubernetes/src/main/docs/kubernetes-resources-quota-component.adoc
 
b/components/camel-kubernetes/src/main/docs/kubernetes-resources-quota-component.adoc
index babe0ad..3476031 100644
--- 
a/components/camel-kubernetes/src/main/docs/kubernetes-resources-quota-component.adoc
+++ 
b/components/camel-kubernetes/src/main/docs/kubernetes-resources-quota-component.adoc
@@ -110,3 +110,36 @@ The component supports 2 options, which are listed below.
 - createResourcesQuota
 - deleteResourcesQuota
 
+== Kubernetes Resource Quota Producer Examples
+
+- listResourcesQuota: this operation list the Resource Quotas on a kubernetes 
cluster
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:list").
+    
toF("kubernetes-resources-quota:///?kubernetesClient=#kubernetesClient&operation=listResourcesQuota").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Resource Quotas from your cluster
+
+- listResourcesQuotaByLabels:  this operation list the Resource Quotas by 
labels on a kubernetes cluster
+
+[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_RESOURCES_QUOTA_LABELS,
 labels);
+            }
+        });
+    
toF("kubernetes-resources-quota:///?kubernetesClient=#kubernetesClient&operation=listResourcesQuotaByLabels").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Resource Quotas from your cluster, using a 
label selector (with key1 and key2, with value value1 and value2)
+

Reply via email to