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 8d8245c708c65785f717fba4173ecd39fb552907 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Dec 22 15:25:30 2021 +0100 Added Github Events Source Kamelet - Templates --- .../camel-k/github-event-source-binding.yaml | 20 ++++++++++++++++++++ .../bindings/core/github-event-source-binding.yaml | 11 +++++++++++ 2 files changed, 31 insertions(+) diff --git a/templates/bindings/camel-k/github-event-source-binding.yaml b/templates/bindings/camel-k/github-event-source-binding.yaml new file mode 100644 index 0000000..74d6ec0 --- /dev/null +++ b/templates/bindings/camel-k/github-event-source-binding.yaml @@ -0,0 +1,20 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: github-event-source-binding +spec: + source: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: github-event-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-event-source-binding.yaml b/templates/bindings/core/github-event-source-binding.yaml new file mode 100644 index 0000000..eee3262 --- /dev/null +++ b/templates/bindings/core/github-event-source-binding.yaml @@ -0,0 +1,11 @@ +- route: + from: + uri: "kamelet:github-event-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