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 <anco...@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)