-
Notifications
You must be signed in to change notification settings - Fork 4.1k
cdc: pass an (arbitrary) kafka topic name in the destination path string #59300
Description
Is your feature request related to a problem? Please describe.
A customer has the following use case:
All of their table names have underscores in their names (Ex: sample_table) but when they try to create a k8s KafkaTopic with the same name, they get an error because k8s uses hyphens ('-') instead of underscores ('_') for names.

The problem is they can not create tables with hyphens in their name because of database naming standards and they cannot create k8s KafkaTopic's with underscore because of k8s naming standards. How do they map the topics to tables for changefeed in this scenario?
Describe the solution you'd like
A possible solution would be to pass an (arbitrary) kafka topic name in the destination path string
Describe alternatives you've considered
An alternative they tried was adding spec.topicName: strimzi/strimzi-kafka-operator#2931.
In the crdb_kafka.yaml, they tried modifying name and adding topicName:
metadata:
name: cdc-demo
...
spec:
topicName: cdc_demo
Additional context
A related issue is: #58302
