Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-4483

KafkaTopic "config: {}" is automatically added or removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2.3.0.GA
    • 2.1.0.GA
    • None
    • None
    • False
    • None
    • False
    • Hide

      1. Create KafkaTopic CR yaml without "config: {}” as below:

      apiVersion: kafka.strimzi.io/v1beta2
      kind: KafkaTopic
      ...
      spec:
        partitions: 1
      

      2. oc apply -f <KafkaTopic CR yaml>

      3. Check created KafkaTopic using "oc KafkaTopic/my-topic-01"
           ==> "config: {}” is added automatically.

      apiVersion: kafka.strimzi.io/v1beta2
      kind: KafkaTopic
      ...
      spec:
        config: {}   # Added automatically
        partitions: 1
      
      Show
      1. Create KafkaTopic CR yaml without "config: {}” as below: apiVersion: kafka.strimzi.io/v1beta2 kind: KafkaTopic ... spec:   partitions: 1 2. oc apply -f <KafkaTopic CR yaml> 3. Check created KafkaTopic using "oc KafkaTopic/my-topic-01"      ==> "config: {}” is added automatically. apiVersion: kafka.strimzi.io/v1beta2 kind: KafkaTopic ... spec:   config: {}   # Added automatically   partitions: 1

      • KafkaTopic "config: {}" is automatically added or removed
        • This behavior seems since AMQ Streams 2.1.
          • Oddly as described below, if config: {} in KafkaTopic CR yaml is added, it is removed; but if not, it is automatically added.
        • In the case of AMQ Streams 2.0, "config: {}" is always removed, never added.

      [As far as I confirmed]

      • AMQ Streams 2.1
        • In the case of creating a KafkaTopic with "config: {}", "config: {}" will be automatically removed.
        • In the case of creating a KafkaTopic without "config: {}", "config: {}" will be automatically added.
      • AMQ Streams 2.0
        • In the case of creating a KafkaTopic with "config: {}", "config: {}" will be automatically removed.
        • In the case of creating a KafkaTopic without "config: {}", It remains so.

            morsak Maros Orsak
            rhn-support-tyamashi Tomonari Yamashita
            Maros Orsak Maros Orsak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: