Skip to content

Commit

Permalink
Added Json Patch Action Kamelet - Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed Dec 21, 2021
1 parent 4299416 commit b88a508
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions templates/bindings/camel-k/json-patch-action-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: json-patch-action-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: timer-source
properties:
message: "Hello"
steps:
- ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: json-patch-action
properties:
template: "The Template"
sink:
ref:
kind: KafkaTopic
apiVersion: kafka.strimzi.io/v1beta1
name: my-topic
13 changes: 13 additions & 0 deletions templates/bindings/core/json-patch-action-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- route:
from:
uri: "kamelet:timer-source"
parameters:
period: 1000
message: "{ \"foo\": \"John\"}"
steps:
- to:
uri: "kamelet:json-patch-action"
parameters:
template: "The Template"
- to:
uri: "log:info"

0 comments on commit b88a508

Please sign in to comment.