Skip to content

Commit

Permalink
Add merge plans CDC source (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
toddkazakov authored Oct 7, 2024
1 parent dadcecf commit 050e6c2
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ if .Values.global.kafka.connect.enabled }}
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnector
metadata:
labels:
app: merge-plans-source
strimzi.io/cluster: {{ .Release.Namespace }}-{{ .Values.global.kafka.connect.clusterName }}
name: merge-plans-source
namespace: {{ .Release.Namespace }}
spec:
class: com.mongodb.kafka.connect.MongoSourceConnector
config:
change.stream.full.document: updateLookup
collection: merge_plans
connection.uri: {{ .Values.global.kafka.connect.mongoConnectionUri }}
database: clinic
topic.prefix: {{ .Release.Namespace }}
output.json.formatter: com.mongodb.kafka.connect.source.json.formatter.ExtendedJson
value.converter: org.apache.kafka.connect.storage.StringConverter
key.converter: org.apache.kafka.connect.storage.StringConverter
heartbeat.interval.ms: {{ .Values.global.kafka.connect.mongoHeartbeatIntervalMs }}
heartbeat.topic.name: {{ .Release.Namespace }}-{{ .Values.global.kafka.connect.clusterName }}-heartbeat
tasksMax: {{ .Values.global.kafka.connect.sourceTasksMax | int }}
{{- end }}

0 comments on commit 050e6c2

Please sign in to comment.