introduce applicationId for separate stream CRDs

This commit is contained in:
Felix Kunde
2021-12-08 17:11:18 +01:00
parent 96a2da1fca
commit 74ee530a6c
8 changed files with 116 additions and 83 deletions
+6 -4
View File
@@ -3,6 +3,7 @@ kind: postgresql
metadata:
name: acid-test-cluster
# labels:
# application: test-app
# environment: demo
# annotations:
# "acid.zalan.do/controller": "second-operator"
@@ -198,15 +199,16 @@ spec:
# Enables change data capture streams for defined database tables
# streams:
# - database: foo
# - applicationId: test-app
# database: foo
# tables:
# data.ta:
# data.tab_a:
# eventType: event_type_a
# data.tb:
# data.tab_b:
# eventType: event_type_b
# idColumn: tb_id
# payloadColumn: tb_payload
# # Optional. Filter ignores events before a certain txnId and lsn. Can be used to skip bad events
# filter:
# data.ta: "[?(@.source.txId > 500 && @.source.lsn > 123456)]"
# data.tab_a: "[?(@.source.txId > 500 && @.source.lsn > 123456)]"
# batchSize: 1000
+3
View File
@@ -473,9 +473,12 @@ spec:
items:
type: object
required:
- applicationId
- database
- tables
properties:
applicationId:
type: string
batchSize:
type: integer
database: