Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-2012

Impossible to configure external Kafka for Data index using kafka-instance CLI parameter

    Details

    • Sprint:
      2020 Week 19-21 (from May 4)
    • Steps to Reproduce:
      Hide

      Install latest Kogito operator using OLM.
      Create Data index CR:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoDataIndex
      metadata:
        name: data-index
      spec:
        replicas: 1
        image:
          tag: 0.10.0
        kafka:
          useKogitoInfra: false
          instance: external-kafka-kafka
        infinispan:
          useKogitoInfra: true
      

      Wait until the Data index is created in namespace.
      Check Data index CR.

      Show
      Install latest Kogito operator using OLM. Create Data index CR: apiVersion: app.kiegroup.org/v1alpha1 kind: KogitoDataIndex metadata: name: data-index spec: replicas: 1 image: tag: 0.10.0 kafka: useKogitoInfra: false instance: external-kafka-kafka infinispan: useKogitoInfra: true Wait until the Data index is created in namespace. Check Data index CR.

      Description

      When Kogito CLI is invoked with parameters:

      install data-index --image quay.io/kiegroup/kogito-data-index:0.9.0 --replicas 1 --kafka-instance external-kafka-kafka -p <namespace>
      

      Then KogitoDataIndex CR is created with

      ...
        kafka:
          instance: kogito-kafka
          useKogitoInfra: true
      ...
      

      The Kogito operator installs default Kafka service and sets Data index to use it even when specific Kafka instance is defined in CLI (same issue observed in CR too).

      Expected Data index CR would be:

      ...
        kafka:
          instance: external-kafka-kafka
          useKogitoInfra: false
      ...
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tarkhand Tarun Khandelwal
                  Reporter:
                  ksuta Karel Suta
                  Tester:
                  Karel Suta
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: