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 09:00:57 UTC

[camel] branch master updated (8aa0bad -> fa439f8)

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 8aa0bad  Regen docs
     new 41dd718  Camel-Kubernetes: Add build configs docs
     new fa439f8  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/openshift-build-configs-component.adoc    | 33 ++++++++++++++++++++++
 .../pages/openshift-build-configs-component.adoc   | 33 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)


[camel] 01/02: Camel-Kubernetes: Add build configs 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 41dd718148c77e5fae77bc934fb07e4e934c5ba0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 26 10:59:45 2019 +0200

    Camel-Kubernetes: Add build configs docs
---
 .../docs/openshift-build-configs-component.adoc    | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/components/camel-kubernetes/src/main/docs/openshift-build-configs-component.adoc b/components/camel-kubernetes/src/main/docs/openshift-build-configs-component.adoc
index 4ccfd48..09be817 100644
--- a/components/camel-kubernetes/src/main/docs/openshift-build-configs-component.adoc
+++ b/components/camel-kubernetes/src/main/docs/openshift-build-configs-component.adoc
@@ -82,3 +82,36 @@ with the following path and query parameters:
 - listBuildConfigs
 - listBuildConfigsByLabels
 - getBuildConfig
+
+== Openshift Build Configs Producer Examples
+
+- listBuilds: this operation list the Build Configs on an Openshift cluster
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:list").
+    toF("openshift-build-configs:///?kubernetesClient=#kubernetesClient&operation=listBuildConfigs").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Builds from your Openshift cluster
+
+- listBuildsByLabels: this operation list the build configs by labels on an Openshift 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_BUILD_CONFIGS_LABELS, labels);
+            }
+        });
+    toF("openshift-build-configs:///?kubernetesClient=#kubernetesClient&operation=listBuildConfigsByLabels").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Build configs from your cluster, using a label selector (with key1 and key2, with value value1 and value2)


[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 fa439f8ab235136e19ce1010a08f9727f70b0c5a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 26 11:00:35 2019 +0200

    Regen docs
---
 .../pages/openshift-build-configs-component.adoc   | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/docs/components/modules/ROOT/pages/openshift-build-configs-component.adoc b/docs/components/modules/ROOT/pages/openshift-build-configs-component.adoc
index dff1992..4dfdd75 100644
--- a/docs/components/modules/ROOT/pages/openshift-build-configs-component.adoc
+++ b/docs/components/modules/ROOT/pages/openshift-build-configs-component.adoc
@@ -83,3 +83,36 @@ with the following path and query parameters:
 - listBuildConfigs
 - listBuildConfigsByLabels
 - getBuildConfig
+
+== Openshift Build Configs Producer Examples
+
+- listBuilds: this operation list the Build Configs on an Openshift cluster
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:list").
+    toF("openshift-build-configs:///?kubernetesClient=#kubernetesClient&operation=listBuildConfigs").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Builds from your Openshift cluster
+
+- listBuildsByLabels: this operation list the build configs by labels on an Openshift 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_BUILD_CONFIGS_LABELS, labels);
+            }
+        });
+    toF("openshift-build-configs:///?kubernetesClient=#kubernetesClient&operation=listBuildConfigsByLabels").
+    to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation return a List of Build configs from your cluster, using a label selector (with key1 and key2, with value value1 and value2)