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 2021/09/01 13:07:53 UTC
[camel-kamelets] branch kube-pods created (now a43a3a3)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
at a43a3a3 Added Kubernetes Pods Source Kamelets
This branch includes the following new commits:
new 1a8895a Added Kubernetes Pods Source Kamelets
new a811a34 Added Kubernetes Pods Source Kamelets
new f16fb0a Added Kubernetes Pods Source Kamelets
new 08bc496 Added Kubernetes Pods Source Kamelets
new 569cb0c Added Kubernetes Pods Source Kamelets
new 9958242 Added Kubernetes Pods Source Kamelets
new 6bfa05d Added Kubernetes Pods Source Kamelets
new a43a3a3 Added Kubernetes Pods Source Kamelets
The 8 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.
[camel-kamelets] 05/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 569cb0c476b19afa6cc65abbef5ab94cf2a047ca
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:05:25 2021 +0200
Added Kubernetes Pods Source Kamelets
---
.../camel-k/kubernetes-pods-source-binding.yaml | 19 +++++++++++++++++++
.../bindings/core/kubernetes-pods-source-binding.yaml | 10 ++++++++++
2 files changed, 29 insertions(+)
diff --git a/templates/bindings/camel-k/kubernetes-pods-source-binding.yaml b/templates/bindings/camel-k/kubernetes-pods-source-binding.yaml
new file mode 100644
index 0000000..80525bf
--- /dev/null
+++ b/templates/bindings/camel-k/kubernetes-pods-source-binding.yaml
@@ -0,0 +1,19 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: kubernetes-pods-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: kubernetes-pods-source
+ properties:
+ masterUrl: "The Kubernetes Master URL"
+ token: "The Oauth Token"
+ sink:
+ ref:
+ kind: KafkaTopic
+ apiVersion: kafka.strimzi.io/v1beta1
+ name: my-topic
+
\ No newline at end of file
diff --git a/templates/bindings/core/kubernetes-pods-source-binding.yaml b/templates/bindings/core/kubernetes-pods-source-binding.yaml
new file mode 100644
index 0000000..369f169
--- /dev/null
+++ b/templates/bindings/core/kubernetes-pods-source-binding.yaml
@@ -0,0 +1,10 @@
+- route:
+ from:
+ uri: "kamelet:kubernetes-pods-source"
+ parameters:
+ masterUrl: "The Kubernetes Master URL"
+ token: "The Oauth Token"
+ steps:
+ - to:
+ uri: "log:info"
+
\ No newline at end of file
[camel-kamelets] 04/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 08bc49652a07c1bc4c783c45d91ee2b5b7663ae6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:05:17 2021 +0200
Added Kubernetes Pods Source Kamelets
---
.../images/kamelets/kubernetes-pods-source.svg | 84 ++++++++++++++
.../modules/ROOT/pages/kubernetes-pods-source.adoc | 127 +++++++++++++++++++++
2 files changed, 211 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/kubernetes-pods-source.svg b/docs/modules/ROOT/assets/images/kamelets/kubernetes-pods-source.svg
new file mode 100644
index 0000000..bedd3b8
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/kubernetes-pods-source.svg
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="722.8457"
+ height="701.96637"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="logo.svg"
+ inkscape:export-filename="/home/thockin/src/kubernetes/new.png"
+ inkscape:export-xdpi="460.95001"
+ inkscape:export-ydpi="460.95001">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="16.190509"
+ inkscape:cx="277.56851"
+ inkscape:cy="157.54494"
+ inkscape:document-units="px"
+ inkscape:current-layer="g3052"
+ showgrid="false"
+ inkscape:window-width="1519"
+ inkscape:window-height="822"
+ inkscape:window-x="51"
+ inkscape:window-y="25"
+ inkscape:window-maximized="0"
+ inkscape:snap-global="false"
+ fit-margin-top="10"
+ fit-margin-left="10"
+ fit-margin-right="10"
+ fit-margin-bottom="10" />
+ <metadata
+ id="metadata7">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-6.3260942,-174.7524)">
+ <g
+ id="g3052">
+ <path
+ style="fill:#326ce5;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="m 365.3125,184.8125 a 46.724621,46.342246 0 0 0 -17.90625,4.53125 l -244.34375,116.75 a 46.724621,46.342246 0 0 0 -25.28125,31.4375 L 17.5,599.78125 A 46.724621,46.342246 0 0 0 23.84375,635.3125 46.724621,46.342246 0 0 0 26.5,639 l 169.125,210.28125 a 46.724621,46.342246 0 0 0 36.53125,17.4375 L 503.375,866.65625 A 46.724621,46.342246 0 0 0 539.90625,849.25 L 708.96875,638.9375 A 46.724621,46.342246 0 0 0 718,599.71875 l -60.375,-262.25 a 46.724621,46.342246 0 0 0 -25.28125,- [...]
+ id="path3055"
+ inkscape:connector-curvature="0"
+ inkscape:export-filename="new.png"
+ inkscape:export-xdpi="250.55"
+ inkscape:export-ydpi="250.55" />
+ <path
+ inkscape:connector-curvature="0"
+ id="path3059"
+ d="m 367.73366,274.05962 c -8.07696,8.2e-4 -14.62596,7.27591 -14.625,16.25 1e-5,0.13773 0.0282,0.26934 0.0312,0.40625 -0.0119,1.21936 -0.0708,2.68836 -0.0312,3.75 0.19262,5.176 1.3209,9.13749 2,13.90625 1.23028,10.20666 2.26117,18.66736 1.625,26.53125 -0.61869,2.9654 -2.80288,5.67741 -4.75,7.5625 l -0.34375,6.1875 c -8.77682,0.72717 -17.61235,2.05874 -26.4375,4.0625 -37.97461,8.62218 -70.67008,28.18307 -95.5625,54.59375 -1.61522,-1.10193 -4.44103,-3.12914 -5.2813,-3.75 -2.61117, [...]
+ style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:0.25;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker:none;visibil [...]
+ sodipodi:nodetypes="ccccccccsccccscssccsccccccccscccsccccccccccccccscccscsccsccccscscsccccccccscccscsccccsccccscscscccccccccccccccscccsccccccccccccscccccscccccccccccccccccccccccscccscccccccccscccscccc"
+ inkscape:export-filename="./path3059.png"
+ inkscape:export-xdpi="250.55"
+ inkscape:export-ydpi="250.55" />
+ </g>
+ </g>
+</svg>
diff --git a/docs/modules/ROOT/pages/kubernetes-pods-source.adoc b/docs/modules/ROOT/pages/kubernetes-pods-source.adoc
new file mode 100644
index 0000000..2de7cfb
--- /dev/null
+++ b/docs/modules/ROOT/pages/kubernetes-pods-source.adoc
@@ -0,0 +1,127 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/kubernetes-pods-source.svg[] Kubernetes Pods source
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Consume Events from Kubernetes Pods
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `kubernetes-pods-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *masterUrl {empty}* *| Kubernetes Master URL| The Kubernetes Cluster Master URL| string| |
+| *token {empty}* *| Oauth Token| The Auth Token to connect to Kubernetes Cluster| string| |
+| resourceName| Resource Name| The Resource Name we want to watch| string| |
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `kubernetes-pods-source` can be used in various contexts.
+
+=== Knative Source
+
+The `kubernetes-pods-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.kubernetes-pods-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: kubernetes-pods-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: kubernetes-pods-source
+ properties:
+ masterUrl: "The Kubernetes Master URL"
+ token: "The Oauth Token"
+ sink:
+ ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+
+----
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `kubernetes-pods-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f kubernetes-pods-source-binding.yaml
+----
+
+==== *Binding to Knative using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind kubernetes-pods-source -p "source.masterUrl=The Kubernetes Master URL" -p "source.token=The Oauth Token" channel/mychannel
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+=== Kafka Source
+
+The `kubernetes-pods-source` Kamelet can be used as Kafka source by binding it to a Kafka topic.
+
+.kubernetes-pods-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: kubernetes-pods-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: kubernetes-pods-source
+ properties:
+ masterUrl: "The Kubernetes Master URL"
+ token: "The Oauth Token"
+ sink:
+ ref:
+ kind: KafkaTopic
+ apiVersion: kafka.strimzi.io/v1beta1
+ name: my-topic
+
+----
+
+Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic named `my-topic` in the current namespace.
+Make also sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `kubernetes-pods-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f kubernetes-pods-source-binding.yaml
+----
+
+==== *Binding to Kafka using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind kubernetes-pods-source -p "source.masterUrl=The Kubernetes Master URL" -p "source.token=The Oauth Token" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
[camel-kamelets] 08/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit a43a3a387fd52c5e3531e111a1e0185e41d83df2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:07:23 2021 +0200
Added Kubernetes Pods Source Kamelets
---
docs/modules/ROOT/nav.adoc | 2 +-
docs/modules/ROOT/pages/kubernetes-pods-source.adoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index e16dfde..7db8378 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -79,7 +79,7 @@
* xref:ROOT:kafka-sink.adoc[image:kamelets/kafka-sink.svg[] Kafka Sink]
* xref:ROOT:kafka-source.adoc[image:kamelets/kafka-source.svg[] Kafka Source]
* xref:ROOT:kubernetes-namespaces-source.adoc[image:kamelets/kubernetes-namespaces-source.svg[] Kubernetes Namespaces Source]
-* xref:ROOT:kubernetes-pods-source.adoc[image:kamelets/kubernetes-pods-source.svg[] Kubernetes Pods source]
+* xref:ROOT:kubernetes-pods-source.adoc[image:kamelets/kubernetes-pods-source.svg[] Kubernetes Pods Source]
* xref:ROOT:log-sink.adoc[image:kamelets/log-sink.svg[] Log Sink]
* xref:ROOT:mail-imap-source.adoc[image:kamelets/mail-imap-source.svg[] Mail IMAP Source]
* xref:ROOT:mariadb-sink.adoc[image:kamelets/mariadb-sink.svg[] MariaDB Sink]
diff --git a/docs/modules/ROOT/pages/kubernetes-pods-source.adoc b/docs/modules/ROOT/pages/kubernetes-pods-source.adoc
index 2de7cfb..93e38a2 100644
--- a/docs/modules/ROOT/pages/kubernetes-pods-source.adoc
+++ b/docs/modules/ROOT/pages/kubernetes-pods-source.adoc
@@ -1,5 +1,5 @@
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
-= image:kamelets/kubernetes-pods-source.svg[] Kubernetes Pods source
+= image:kamelets/kubernetes-pods-source.svg[] Kubernetes Pods Source
*Provided by: "Apache Software Foundation"*
[camel-kamelets] 02/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit a811a347289a8c3b3e782d202b79bb3639c79ccb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:04:54 2021 +0200
Added Kubernetes Pods Source Kamelets
---
.../kamelets/kubernetes-pods-source.kamelet.yaml | 55 ++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml
new file mode 100644
index 0000000..a970672
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml
@@ -0,0 +1,55 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: kubernetes-pods-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Kubernetes"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Kubernetes Pods source"
+ description: |-
+ Consume Events from Kubernetes Pods
+ required:
+ - token
+ - masterUrl
+ type: object
+ properties:
+ token:
+ title: Oauth Token
+ description: The Auth Token to connect to Kubernetes Cluster
+ type: string
+ masterUrl:
+ title: Kubernetes Master URL
+ description: The Kubernetes Cluster Master URL
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ resourceName:
+ title: Resource Name
+ description: The Resource Name we want to watch
+ type: string
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:kubernetes"
+ - "camel:kamelet"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "kubernetes-pods://{{masterUrl}}"
+ parameters:
+ oauthToken: "{{token}}"
+ resourceName: "{{?resourceName}}"
+ steps:
+ - marshal:
+ json: {}
+ - to: "kamelet:sink"
+
[camel-kamelets] 03/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f16fb0a1a1db76c260ac17b2f67ccd53a26967c4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:05:09 2021 +0200
Added Kubernetes Pods Source Kamelets
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index ed9b1d8..e16dfde 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -79,6 +79,7 @@
* xref:ROOT:kafka-sink.adoc[image:kamelets/kafka-sink.svg[] Kafka Sink]
* xref:ROOT:kafka-source.adoc[image:kamelets/kafka-source.svg[] Kafka Source]
* xref:ROOT:kubernetes-namespaces-source.adoc[image:kamelets/kubernetes-namespaces-source.svg[] Kubernetes Namespaces Source]
+* xref:ROOT:kubernetes-pods-source.adoc[image:kamelets/kubernetes-pods-source.svg[] Kubernetes Pods source]
* xref:ROOT:log-sink.adoc[image:kamelets/log-sink.svg[] Log Sink]
* xref:ROOT:mail-imap-source.adoc[image:kamelets/mail-imap-source.svg[] Mail IMAP Source]
* xref:ROOT:mariadb-sink.adoc[image:kamelets/mariadb-sink.svg[] MariaDB Sink]
[camel-kamelets] 06/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 995824226fb4678d73a82139c8272231147612d2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:06:39 2021 +0200
Added Kubernetes Pods Source Kamelets
---
kubernetes-pods-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kubernetes-pods-source.kamelet.yaml b/kubernetes-pods-source.kamelet.yaml
index a970672..7bb5b7f 100644
--- a/kubernetes-pods-source.kamelet.yaml
+++ b/kubernetes-pods-source.kamelet.yaml
@@ -12,7 +12,7 @@ metadata:
camel.apache.org/kamelet.type: "source"
spec:
definition:
- title: "Kubernetes Pods source"
+ title: "Kubernetes Pods Source"
description: |-
Consume Events from Kubernetes Pods
required:
[camel-kamelets] 01/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1a8895a3860f12564da1317763e0b19d7b198efe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:04:03 2021 +0200
Added Kubernetes Pods Source Kamelets
---
kubernetes-pods-source.kamelet.yaml | 55 +++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/kubernetes-pods-source.kamelet.yaml b/kubernetes-pods-source.kamelet.yaml
new file mode 100644
index 0000000..a970672
--- /dev/null
+++ b/kubernetes-pods-source.kamelet.yaml
@@ -0,0 +1,55 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: kubernetes-pods-source
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Kubernetes"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Kubernetes Pods source"
+ description: |-
+ Consume Events from Kubernetes Pods
+ required:
+ - token
+ - masterUrl
+ type: object
+ properties:
+ token:
+ title: Oauth Token
+ description: The Auth Token to connect to Kubernetes Cluster
+ type: string
+ masterUrl:
+ title: Kubernetes Master URL
+ description: The Kubernetes Cluster Master URL
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ resourceName:
+ title: Resource Name
+ description: The Resource Name we want to watch
+ type: string
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:kubernetes"
+ - "camel:kamelet"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "kubernetes-pods://{{masterUrl}}"
+ parameters:
+ oauthToken: "{{token}}"
+ resourceName: "{{?resourceName}}"
+ steps:
+ - marshal:
+ json: {}
+ - to: "kamelet:sink"
+
[camel-kamelets] 07/08: Added Kubernetes Pods Source Kamelets
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch kube-pods
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 6bfa05d43f57b5ebeececb129a58bf25fa343993
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 15:07:11 2021 +0200
Added Kubernetes Pods Source Kamelets
---
.../src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml
index a970672..7bb5b7f 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-pods-source.kamelet.yaml
@@ -12,7 +12,7 @@ metadata:
camel.apache.org/kamelet.type: "source"
spec:
definition:
- title: "Kubernetes Pods source"
+ title: "Kubernetes Pods Source"
description: |-
Consume Events from Kubernetes Pods
required: