-
Bug
-
Resolution: Done
-
Major
-
0.5.0
-
Fedora 30
When trying to install the data-index service, following the README, the defined image into the kogitodataindex CR is false.
After launching command
kogito install data-index -p my-project --infinispan-url infinispan-server:11222 --kafka-url my-cluster-kafka-bootstrap:9092
and then
oc get kogitodataindex -o yaml
I get:
apiVersion: v1 items: - apiVersion: app.kiegroup.org/v1alpha1 kind: KogitoDataIndex metadata: creationTimestamp: "2019-10-23T11:29:07Z" generation: 1 name: kogito-data-index namespace: kogito-dataindex resourceVersion: "547528" selfLink: /apis/app.kiegroup.org/v1alpha1/namespaces/kogito-dataindex/kogitodataindices/kogito-data-index uid: 5337aa41-f588-11e9-ac99-52fdfc072182 spec: image: quay.io/kiegroup/data-index-service:latest infinispan: credentials: {} serviceURI: infinispan-server:11222 kafka: serviceURI: my-cluster-kafka-bootstrap:9092 replicas: 1 status: conditions: - condition: OK lastTransitionTime: "2019-10-23T11:29:07Z" message: Deployment Finished - condition: Provisioning lastTransitionTime: "2019-10-23T11:29:08Z" message: Deployment Not Started dependenciesStatus: - OK deploymentStatus: collisionCount: 0 currentReplicas: 1 currentRevision: kogito-data-index-6df45d9f48 observedGeneration: 1 replicas: 1 updateRevision: kogito-data-index-6df45d9f48 updatedReplicas: 1 route: http://kogito-data-index-kogito-dataindex.apps-crc.testing serviceStatus: loadBalancer: {} kind: List metadata: resourceVersion: "" selfLink: ""
In there, you can find image: quay.io/kiegroup/data-index-service:latest, which is wrong.
The correct image name should be image: quay.io/kiegroup/kogito-data-index:latest.
This is coming from InitHook method in cmd/kogito/command/install/data_index.go which sets the image like this:
i.command.Flags().StringVarP(&i.flags.image, "image", "i", resdataindex.DefaultImage, "Image tag (namespace/name:tag) for the runtime Service, e.g: openshift/kogito-data-index:latest")
and DefaultImage is set to
DefaultImage = "quay.io/kiegroup/data-index-service:latest"
in pkg/controller/kogitodataindex/resources/defaults.go file...
This should be corrected.
- is related to
-
KOGITO-485 Release Kogito CLI 0.5.1 for Devoxx BE
-
- Closed
-