You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/09/24 10:18:43 UTC
[camel] branch master updated (68e3f92 -> b474612)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from 68e3f92 Upgrade Netty Boring SSL to version 2.0.26.Final
new e78994f Camel-Kubernetes: Added sample code for Resource Quotas component
new b474612 Regen docs
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../docs/kubernetes-resources-quota-component.adoc | 33 ++++++++++++++++++++++
.../kubernetes-resources-quota-component.adoc | 33 ++++++++++++++++++++++
2 files changed, 66 insertions(+)
[camel] 02/02: Regen docs
Posted by ac...@apache.org.
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 b474612178f7223dfe19195ab8c883f2d84d9e50
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 24 12:18:20 2019 +0200
Regen docs
---
.../kubernetes-resources-quota-component.adoc | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/docs/components/modules/ROOT/pages/kubernetes-resources-quota-component.adoc b/docs/components/modules/ROOT/pages/kubernetes-resources-quota-component.adoc
index d878591..a502aee 100644
--- a/docs/components/modules/ROOT/pages/kubernetes-resources-quota-component.adoc
+++ b/docs/components/modules/ROOT/pages/kubernetes-resources-quota-component.adoc
@@ -111,3 +111,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)
+
[camel] 01/02: Camel-Kubernetes: Added sample code for Resource
Quotas component
Posted by ac...@apache.org.
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 <an...@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)
+