The KafkaTopic is invalid: DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
Issue
-
Editing the configuration of the kafka topic created by Debezium like
admin.MarketPlace.PurchaseHistory
fails with the following error:$ cat <<EOF | oc apply -f - apiVersion: kafka.strimzi.io/v1beta1 kind: KafkaTopic metadata: name: admin.MarketPlace.PurchaseHistory labels: strimzi.io/cluster: broker spec: partitions: 3 replicas: 1 config: segment.bytes: 1073741824 EOF The KafkaTopic "admin.MarketPlace.PurchaseHistory" is invalid: metadata.name: Invalid value: "admin.MarketPlace.PurchaseHistory": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
Environment
- AMQ Streams 1.4.0
- OpenShift Container 4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.