From 5a9637288c8ed1e4a9a4b9d33645d262eb45ba53 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Wed, 22 Dec 2021 15:15:24 +0100 Subject: [PATCH] Added Github Tag Source Kamelet - Templates --- .../camel-k/github-tag-source-binding.yaml | 20 +++++++++++++++++++ .../core/github-tag-source-binding.yaml | 11 ++++++++++ 2 files changed, 31 insertions(+) create mode 100644 templates/bindings/camel-k/github-tag-source-binding.yaml create mode 100644 templates/bindings/core/github-tag-source-binding.yaml 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 000000000..6536d796e --- /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 000000000..b6e32f888 --- /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