-
Bug
-
Resolution: Done
-
Major
-
2.0.1.GA
-
None
- Although the oc command successfully returned, the topic is not successfully created without "spec:" part in a Kafka Topic yaml.
- I guess, the following solutions could be considered:
- Change "spec" field as required in the Kafka Topic CRD(043-Crd-kafkatopic.yaml)
- Create a topic in a Kafka cluster even if "spec" field is not specified in a Kafka Topic yaml.
- As a workaround:
- By using "spec: {}" instead of removing "spec:", KafkaTopic will be created successfully.
- For example, when trying to create "call-detail-records" topic, "oc create" command finished successfully. But the topic does not show "True" for "READY".
$ cat call-detail-records-topic.yaml apiVersion: kafka.strimzi.io/v1beta2 kind: KafkaTopic metadata: name: call-detail-records labels: strimzi.io/cluster: my-cluster $ oc create -f call-detail-records-topic.yaml kafkatopic.kafka.strimzi.io/call-detail-records created $ oc get kafkatopics call-detail-records NAME CLUSTER PARTITIONS REPLICATION FACTOR READY call-detail-records my-cluster
- is related to
-
ENTMQST-5371 KafkaTopic is not create if the "spec:" is missing.
- Closed