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/12/22 14:16:06 UTC

[camel-kamelets] 05/05: Added Github Tag Source Kamelet - Templates

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch tag-github-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 466b600fbd7a3f63b4dea5288b3e08ae8d4ebc18
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 22 15:15:24 2021 +0100

    Added Github Tag Source Kamelet - Templates
---
 .../bindings/camel-k/github-tag-source-binding.yaml  | 20 ++++++++++++++++++++
 .../bindings/core/github-tag-source-binding.yaml     | 11 +++++++++++
 2 files changed, 31 insertions(+)

diff --git a/templates/bindings/camel-k/github-tag-source-binding.yaml b/templates/bindings/camel-k/github-tag-source-binding.yaml
new file mode 100644
index 0000000..6536d79
--- /dev/null
+++ b/templates/bindings/camel-k/github-tag-source-binding.yaml
@@ -0,0 +1,20 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: github-tag-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: github-tag-source
+    properties:
+      oauthToken: "The OAuth Token"
+      repoName: "The Repository Name"
+      repoOwner: "The Repository Owner"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  
\ No newline at end of file
diff --git a/templates/bindings/core/github-tag-source-binding.yaml b/templates/bindings/core/github-tag-source-binding.yaml
new file mode 100644
index 0000000..b6e32f8
--- /dev/null
+++ b/templates/bindings/core/github-tag-source-binding.yaml
@@ -0,0 +1,11 @@
+- route:
+    from:
+      uri: "kamelet:github-tag-source"
+      parameters:
+        oauthToken: "The OAuth Token"
+        repoName: "The Repository Name"
+        repoOwner: "The Repository Owner"
+    steps:
+      - to:
+          uri: "log:info"
+    
\ No newline at end of file