This is an automated email from the ASF dual-hosted git repository. dfoulks pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 06a745b3600f6621ddf448748a2b53ef0cbe1d5f Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Apr 20 14:50:25 2021 +0200 Added Exec Sink Kamelet --- .../ROOT/assets/images/kamelets/exec-sink.svg | 29 ++++++++++ docs/modules/ROOT/pages/exec-sink.adoc | 62 ++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/docs/modules/ROOT/assets/images/kamelets/exec-sink.svg b/docs/modules/ROOT/assets/images/kamelets/exec-sink.svg new file mode 100644 index 0000000..00b5f3f --- /dev/null +++ b/docs/modules/ROOT/assets/images/kamelets/exec-sink.svg @@ -0,0 +1,29 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" + "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<svg version="1.0" xmlns="http://www.w3.org/2000/svg" + width="1280.000000pt" height="1012.000000pt" viewBox="0 0 1280.000000 1012.000000" + preserveAspectRatio="xMidYMid meet"> +<metadata> +Created by potrace 1.15, written by Peter Selinger 2001-2017 +</metadata> +<g transform="translate(0.000000,1012.000000) scale(0.100000,-0.100000)" +fill="#000000" stroke="none"> +<path d="M8585 10114 c-16 -3 -221 -34 -455 -70 -890 -136 -1487 -227 -2125 +-324 -363 -55 -894 -136 -1180 -180 -286 -44 -817 -125 -1180 -180 -363 -55 +-896 -137 -1185 -181 -548 -83 -619 -96 -711 -135 -208 -86 -365 -237 -469 +-449 -91 -187 -107 -325 -71 -616 12 -96 57 -478 101 -849 44 -371 123 -1033 +175 -1470 52 -437 180 -1515 285 -2395 104 -880 194 -1628 200 -1663 28 -164 +129 -351 256 -473 38 -36 78 -72 89 -80 27 -18 77 -104 67 -114 -4 -5 -1 -5 7 +0 9 5 12 3 8 -6 -2 -8 9 -39 25 -69 80 -144 211 -266 371 -345 106 -52 175 +-71 305 -86 133 -15 223 -6 760 76 160 25 426 65 590 90 378 58 807 124 1180 +180 160 25 424 65 585 90 160 24 426 65 590 90 163 25 430 65 592 90 162 25 +428 65 590 90 162 25 427 65 588 90 160 24 427 65 592 90 1147 175 1156 176 +1320 254 264 125 442 365 485 649 6 37 8 166 6 287 l-3 220 -91 430 c-87 412 +-193 919 -342 1630 -38 182 -141 674 -229 1095 -88 421 -264 1262 -391 1869 +-127 607 -255 1222 -285 1365 -31 144 -67 301 -81 350 -89 310 -330 546 -642 +627 -76 20 -264 33 -327 23z m2382 -7716 c-3 -7 -5 -2 -5 12 0 14 2 19 5 13 2 +-7 2 -19 0 -25z m-8542 -1498 c10 -11 16 -20 13 -20 -3 0 -13 9 -23 20 -10 11 +-16 20 -13 20 3 0 13 -9 23 -20z"/> +</g> +</svg> diff --git a/docs/modules/ROOT/pages/exec-sink.adoc b/docs/modules/ROOT/pages/exec-sink.adoc new file mode 100644 index 0000000..68531da --- /dev/null +++ b/docs/modules/ROOT/pages/exec-sink.adoc @@ -0,0 +1,62 @@ +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT += image:kamelets/exec-sink.svg[] Exec Sink + +*Provided by: "Apache Software Foundation"* + +Execute system commands + +== Configuration Options + +The following table summarizes the configuration options available for the `exec-sink` Kamelet: +[width="100%",cols="2,^2,3,^2,^2,^3",options="header"] +|=== +| Property| Name| Description| Type| Default| Example +| *args {empty}* *| The arguments| Arguments to pass to the executables| string| | +| *executable {empty}* *| Executable command| The command to execute| string| | +|=== + +NOTE: Fields marked with ({empty}*) are mandatory. + +== Usage + +This section summarizes how the `exec-sink` can be used in various contexts. + +=== Knative Sink + +The `exec-sink` Kamelet can be used as Knative sink by binding it to a Knative object. + +.exec-sink-binding.yaml +[source,yaml] +---- +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: exec-sink-binding +spec: + source: + ref: + kind: InMemoryChannel + apiVersion: messaging.knative.dev/v1 + name: mychannel + sink: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: exec-sink + properties: + args: "The The arguments" + executable: "The Executable command" + +---- + +Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to. + +Save the `exec-sink-binding.yaml` file into your hard drive, then configure it according to your needs. + +You can run the sink using the following command: + +[source,shell] +---- +kubectl apply -f exec-sink-binding.yaml +---- +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT