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/26 08:13:03 UTC

[camel] branch master updated (18728d6 -> 8b9fecf)

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 18728d6  Regen docs
     new d0057b6  Camel-Kubernetes: Add sample code for service accounts
     new 0d3abff  Regen docs
     new 45f3513  Fixed typo in camel-kubernetes docs
     new 8b9fecf  Regen docs

The 4 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:
 .../kubernetes-service-accounts-component.adoc     | 32 ++++++++++++++++++++++
 .../main/docs/kubernetes-services-component.adoc   |  2 +-
 .../kubernetes-service-accounts-component.adoc     | 32 ++++++++++++++++++++++
 .../ROOT/pages/kubernetes-services-component.adoc  |  2 +-
 4 files changed, 66 insertions(+), 2 deletions(-)


[camel] 04/04: 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 8b9fecfa0f5d02eb986df81837325f099d084b0f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 26 10:12:46 2019 +0200

    Regen docs
---
 docs/components/modules/ROOT/pages/kubernetes-services-component.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/components/modules/ROOT/pages/kubernetes-services-component.adoc b/docs/components/modules/ROOT/pages/kubernetes-services-component.adoc
index bed148f..f0e80fc 100644
--- a/docs/components/modules/ROOT/pages/kubernetes-services-component.adoc
+++ b/docs/components/modules/ROOT/pages/kubernetes-services-component.adoc
@@ -169,4 +169,4 @@ fromF("kubernetes-services://%s?oauthToken=%s&namespace=default&resourceName=tes
     }
 --------------------------------------------------------------------------------
 
-This consumer will return a list of events on the namespace default for the deployment test.
+This consumer will return a list of events on the namespace default for the service test.


[camel] 03/04: Fixed typo in camel-kubernetes 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 45f35138aff4af8002b87593adaa7e0395225eb0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 26 10:11:59 2019 +0200

    Fixed typo in camel-kubernetes docs
---
 .../camel-kubernetes/src/main/docs/kubernetes-services-component.adoc   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-kubernetes/src/main/docs/kubernetes-services-component.adoc b/components/camel-kubernetes/src/main/docs/kubernetes-services-component.adoc
index fb1852e..5ea043c 100644
--- a/components/camel-kubernetes/src/main/docs/kubernetes-services-component.adoc
+++ b/components/camel-kubernetes/src/main/docs/kubernetes-services-component.adoc
@@ -168,4 +168,4 @@ fromF("kubernetes-services://%s?oauthToken=%s&namespace=default&resourceName=tes
     }
 --------------------------------------------------------------------------------
 
-This consumer will return a list of events on the namespace default for the deployment test.
+This consumer will return a list of events on the namespace default for the service test.


[camel] 02/04: 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 0d3abffd16c9e6fdb2481dee840972b994c496f3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 26 10:11:46 2019 +0200

    Regen docs
---
 .../kubernetes-service-accounts-component.adoc     | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/docs/components/modules/ROOT/pages/kubernetes-service-accounts-component.adoc b/docs/components/modules/ROOT/pages/kubernetes-service-accounts-component.adoc
index bdeba27..acb617f 100644
--- a/docs/components/modules/ROOT/pages/kubernetes-service-accounts-component.adoc
+++ b/docs/components/modules/ROOT/pages/kubernetes-service-accounts-component.adoc
@@ -109,3 +109,35 @@ The component supports 2 options, which are listed below.
 - createServiceAccount
 - deleteServiceAccount
 
+== Kubernetes ServiceAccounts Produce Examples
+
+- listServiceAccounts: this operation list the sa on a kubernetes cluster
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:list").
+    toF("kubernetes-service-accounts:///?kubernetesClient=#kubernetesClient&operation=listServiceAccounts").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of servoces from your cluster
+
+- listServiceAccountsByLabels:  this operation list the sa 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_SERVICE_ACCOUNTS_LABELS, labels);
+            }
+        });
+    toF("kubernetes-service-accounts:///?kubernetesClient=#kubernetesClient&operation=listServiceAccountsByLabels").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Services from your cluster, using a label selector (with key1 and key2, with value value1 and value2)


[camel] 01/04: Camel-Kubernetes: Add sample code for service accounts

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 d0057b6a1286932b3158178cec915a324be54ddc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 26 10:10:37 2019 +0200

    Camel-Kubernetes: Add sample code for service accounts
---
 .../kubernetes-service-accounts-component.adoc     | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/components/camel-kubernetes/src/main/docs/kubernetes-service-accounts-component.adoc b/components/camel-kubernetes/src/main/docs/kubernetes-service-accounts-component.adoc
index a0a6e3e..6671fe6 100644
--- a/components/camel-kubernetes/src/main/docs/kubernetes-service-accounts-component.adoc
+++ b/components/camel-kubernetes/src/main/docs/kubernetes-service-accounts-component.adoc
@@ -108,3 +108,35 @@ The component supports 2 options, which are listed below.
 - createServiceAccount
 - deleteServiceAccount
 
+== Kubernetes ServiceAccounts Produce Examples
+
+- listServiceAccounts: this operation list the sa on a kubernetes cluster
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:list").
+    toF("kubernetes-service-accounts:///?kubernetesClient=#kubernetesClient&operation=listServiceAccounts").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of servoces from your cluster
+
+- listServiceAccountsByLabels:  this operation list the sa 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_SERVICE_ACCOUNTS_LABELS, labels);
+            }
+        });
+    toF("kubernetes-service-accounts:///?kubernetesClient=#kubernetesClient&operation=listServiceAccountsByLabels").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Services from your cluster, using a label selector (with key1 and key2, with value value1 and value2)