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

Data index Infinispan usernameKey and passwordKey were not applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.10.0
    • 0.9.0
    • Operator
    • None
    • Hide

      on OCP:
      Create a `custom-secret` secret with `custom-username` and `custom-password` keys.
      Create Data index using this CR:

      apiVersion: app.kiegroup.org/v1alpha1
      kind: KogitoDataIndex
      metadata:
        name: kogito-data-index
        namespace: ksuta-test
      spec:
        infinispan:
          credentials:
            secretName: custom-secret
            usernameKey: custom-username
            passwordKey: custom-password
          uri: asdf:123
          useKogitoInfra: false
        image:
          tag: 0.9.0    
        kafka:
          useKogitoInfra: false
        replicas: 1
      

      =>
      Data index creation will fail as data index expects `username` and `password` keys in secret.

      Show
      on OCP: Create a `custom-secret` secret with `custom-username` and `custom-password` keys. Create Data index using this CR: apiVersion: app.kiegroup.org/v1alpha1 kind: KogitoDataIndex metadata: name: kogito-data-index namespace: ksuta-test spec: infinispan: credentials: secretName: custom-secret usernameKey: custom-username passwordKey: custom-password uri: asdf:123 useKogitoInfra: false image: tag: 0.9.0 kafka: useKogitoInfra: false replicas: 1 => Data index creation will fail as data index expects `username` and `password` keys in secret.

      If user sets custom usernameKey and passwordKey for Infinispan on Data index CR then these values are ignored and default `username` and `password` values were applied.

              ksuta Karel Suta
              ksuta Karel Suta
              Tristan Radisson Tristan Radisson
              Tristan Radisson Tristan Radisson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: