Skip to content

cdc: pass an (arbitrary) kafka topic name in the destination path string #59300

@florence-crl

Description

@florence-crl

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.
k8s_error

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

topicName

Additional context
A related issue is: #58302

Metadata

Metadata

Assignees

Labels

A-cdcChange Data CaptureC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions