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 12:38:30 UTC
[camel-kamelets] branch main updated (4b01bbd -> 26f0a75)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
from 4b01bbd Added Xj Template Kamelet Action
new e98c9b9 Added Kubernetes Namespaces Source Kamelet
new 58d12d2 Added Kubernetes Namespaces Source Kamelet
new 50c601a Added Kubernetes Namespaces Source Kamelet
new 97c0ea7 Added Kubernetes Namespaces Source Kamelet
new d600dc3 Added Kubernetes Namespaces Source Kamelet
new cd491c9 Added Kubernetes Namespaces Source Kamelet
new 28c154f Added Kubernetes Namespaces Source Kamelet
new 26f0a75 Added Kubernetes Namespaces Source Kamelet
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.
Summary of changes:
.../kamelets/kubernetes-namespaces-source.svg | 84 ++++++++++++++++++++++
docs/modules/ROOT/nav.adoc | 1 +
...urce.adoc => kubernetes-namespaces-source.adoc} | 49 +++++++------
kubernetes-namespaces-source.kamelet.yaml | 50 +++++++++++++
.../kubernetes-namespaces-source.kamelet.yaml | 50 +++++++++++++
...l => kubernetes-namespaces-source-binding.yaml} | 19 +++--
.../core/kubernetes-namespaces-source-binding.yaml | 10 +++
7 files changed, 228 insertions(+), 35 deletions(-)
create mode 100644 docs/modules/ROOT/assets/images/kamelets/kubernetes-namespaces-source.svg
copy docs/modules/ROOT/pages/{jms-amqp-10-source.adoc => kubernetes-namespaces-source.adoc} (57%)
create mode 100644 kubernetes-namespaces-source.kamelet.yaml
create mode 100644 library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml
copy templates/bindings/camel-k/{aws-ec2-sink-binding.yaml => kubernetes-namespaces-source-binding.yaml} (62%)
create mode 100644 templates/bindings/core/kubernetes-namespaces-source-binding.yaml
[camel-kamelets] 08/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 26f0a75a702fb8bbfc0af978f63bac6a7b61c940
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:36:51 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
docs/modules/ROOT/nav.adoc | 2 +-
docs/modules/ROOT/pages/kubernetes-namespaces-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 dd45be9..ed9b1d8 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -78,7 +78,7 @@
* xref:ROOT:kafka-not-secured-source.adoc[image:kamelets/kafka-not-secured-source.svg[] Kafka Not Secured Source]
* 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-namespaces-source.adoc[image:kamelets/kubernetes-namespaces-source.svg[] Kubernetes Namespaces 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-namespaces-source.adoc b/docs/modules/ROOT/pages/kubernetes-namespaces-source.adoc
index bb0e661..947c379 100644
--- a/docs/modules/ROOT/pages/kubernetes-namespaces-source.adoc
+++ b/docs/modules/ROOT/pages/kubernetes-namespaces-source.adoc
@@ -1,5 +1,5 @@
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
-= image:kamelets/kubernetes-namespaces-source.svg[] Kubernetes Namespaces source
+= image:kamelets/kubernetes-namespaces-source.svg[] Kubernetes Namespaces Source
*Provided by: "Apache Software Foundation"*
[camel-kamelets] 04/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 97c0ea7fecd8af400f9240d63336292659340c78
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:34:48 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
.../kamelets/kubernetes-namespaces-source.svg | 84 ++++++++++++++
.../ROOT/pages/kubernetes-namespaces-source.adoc | 126 +++++++++++++++++++++
2 files changed, 210 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/kubernetes-namespaces-source.svg b/docs/modules/ROOT/assets/images/kamelets/kubernetes-namespaces-source.svg
new file mode 100644
index 0000000..bedd3b8
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/kubernetes-namespaces-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-namespaces-source.adoc b/docs/modules/ROOT/pages/kubernetes-namespaces-source.adoc
new file mode 100644
index 0000000..bb0e661
--- /dev/null
+++ b/docs/modules/ROOT/pages/kubernetes-namespaces-source.adoc
@@ -0,0 +1,126 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/kubernetes-namespaces-source.svg[] Kubernetes Namespaces source
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Consume Events from Kubernetes Namespaces
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `kubernetes-namespaces-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| |
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `kubernetes-namespaces-source` can be used in various contexts.
+
+=== Knative Source
+
+The `kubernetes-namespaces-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.kubernetes-namespaces-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: kubernetes-namespaces-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: kubernetes-namespaces-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-namespaces-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-namespaces-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-namespaces-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-namespaces-source` Kamelet can be used as Kafka source by binding it to a Kafka topic.
+
+.kubernetes-namespaces-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: kubernetes-namespaces-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: kubernetes-namespaces-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-namespaces-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-namespaces-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-namespaces-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] 06/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit cd491c9230ff6e1e621ad19ee2c8dc5a30a2ca74
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:36:10 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
kubernetes-namespaces-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kubernetes-namespaces-source.kamelet.yaml b/kubernetes-namespaces-source.kamelet.yaml
index 5b3f39c..1a9f85e 100644
--- a/kubernetes-namespaces-source.kamelet.yaml
+++ b/kubernetes-namespaces-source.kamelet.yaml
@@ -12,7 +12,7 @@ metadata:
camel.apache.org/kamelet.type: "source"
spec:
definition:
- title: "Kubernetes Namespaces source"
+ title: "Kubernetes Namespaces Source"
description: |-
Consume Events from Kubernetes Namespaces
required:
[camel-kamelets] 03/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 50c601ab6c660ed1e76e5669ec3932a5a17eb243
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:34:41 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
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 fc32d87..dd45be9 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -78,6 +78,7 @@
* xref:ROOT:kafka-not-secured-source.adoc[image:kamelets/kafka-not-secured-source.svg[] Kafka Not Secured Source]
* 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: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] 02/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 58d12d2f1553be9108c18f4cdde8103046fdddbc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:34:17 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
.../kubernetes-namespaces-source.kamelet.yaml | 50 ++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml
new file mode 100644
index 0000000..5b3f39c
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml
@@ -0,0 +1,50 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: kubernetes-namespaces-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 Namespaces source"
+ description: |-
+ Consume Events from Kubernetes Namespaces
+ 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
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:kubernetes"
+ - "camel:kamelet"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "kubernetes-namespaces://{{masterUrl}}"
+ parameters:
+ oauthToken: "{{token}}"
+ steps:
+ - marshal:
+ json: {}
+ - to: "kamelet:sink"
+
[camel-kamelets] 07/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 28c154f5b021bf31ae58c3ad231a21fda4d6d686
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:36:29 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
.../main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml
index 5b3f39c..1a9f85e 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/kubernetes-namespaces-source.kamelet.yaml
@@ -12,7 +12,7 @@ metadata:
camel.apache.org/kamelet.type: "source"
spec:
definition:
- title: "Kubernetes Namespaces source"
+ title: "Kubernetes Namespaces Source"
description: |-
Consume Events from Kubernetes Namespaces
required:
[camel-kamelets] 01/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e98c9b9c84e133e7e45e42070df228401686d258
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:32:46 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
kubernetes-namespaces-source.kamelet.yaml | 50 +++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/kubernetes-namespaces-source.kamelet.yaml b/kubernetes-namespaces-source.kamelet.yaml
new file mode 100644
index 0000000..5b3f39c
--- /dev/null
+++ b/kubernetes-namespaces-source.kamelet.yaml
@@ -0,0 +1,50 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: kubernetes-namespaces-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 Namespaces source"
+ description: |-
+ Consume Events from Kubernetes Namespaces
+ 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
+ types:
+ out:
+ mediaType: application/json
+ dependencies:
+ - "camel:kubernetes"
+ - "camel:kamelet"
+ - "camel:jackson"
+ flow:
+ from:
+ uri: "kubernetes-namespaces://{{masterUrl}}"
+ parameters:
+ oauthToken: "{{token}}"
+ steps:
+ - marshal:
+ json: {}
+ - to: "kamelet:sink"
+
[camel-kamelets] 05/08: Added Kubernetes Namespaces Source Kamelet
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit d600dc3673046eba302ce76a855e9505464c40ad
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 14:34:57 2021 +0200
Added Kubernetes Namespaces Source Kamelet
---
.../camel-k/kubernetes-namespaces-source-binding.yaml | 19 +++++++++++++++++++
.../core/kubernetes-namespaces-source-binding.yaml | 10 ++++++++++
2 files changed, 29 insertions(+)
diff --git a/templates/bindings/camel-k/kubernetes-namespaces-source-binding.yaml b/templates/bindings/camel-k/kubernetes-namespaces-source-binding.yaml
new file mode 100644
index 0000000..8ab2717
--- /dev/null
+++ b/templates/bindings/camel-k/kubernetes-namespaces-source-binding.yaml
@@ -0,0 +1,19 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: kubernetes-namespaces-source-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: kubernetes-namespaces-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-namespaces-source-binding.yaml b/templates/bindings/core/kubernetes-namespaces-source-binding.yaml
new file mode 100644
index 0000000..19a2e5e
--- /dev/null
+++ b/templates/bindings/core/kubernetes-namespaces-source-binding.yaml
@@ -0,0 +1,10 @@
+- route:
+ from:
+ uri: "kamelet:kubernetes-namespaces-source"
+ parameters:
+ masterUrl: "The Kubernetes Master URL"
+ token: "The Oauth Token"
+ steps:
+ - to:
+ uri: "log:info"
+
\ No newline at end of file