Skip to content

Commit

Permalink
Added Github Commit Source Kamelet - Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed Dec 21, 2021
1 parent 9795199 commit c1c69e8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
21 changes: 21 additions & 0 deletions templates/bindings/camel-k/github-commit-source-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: github-commit-source-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: github-commit-source
properties:
branch: "The Branch"
oauthToken: "The OAuth Token"
repoName: "The Repository Name"
repoOwner: "The Repository Owner"
sink:
ref:
kind: KafkaTopic
apiVersion: kafka.strimzi.io/v1beta1
name: my-topic

12 changes: 12 additions & 0 deletions templates/bindings/core/github-commit-source-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- route:
from:
uri: "kamelet:github-commit-source"
parameters:
branch: "The Branch"
oauthToken: "The OAuth Token"
repoName: "The Repository Name"
repoOwner: "The Repository Owner"
steps:
- to:
uri: "log:info"

0 comments on commit c1c69e8

Please sign in to comment.