Details
Description
External database configuration for PIM in Operator is missing host and port config variables, these variables are used in external db config for Kie Server.
Missing variables for configuration blocks testing with following external DBs: DB2, postgresql, postgresplus.
When is used configuration from Kie Server's external DB and is applied for PIM, the Operator fails with invalid KieApp message
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://api.production.rhba.openshift-aws.rhocf-dev.com:6443/apis/app.kiegroup.org/v2/namespaces/kie-operator-pam-3d46/kieapps. Message: KieApp.app.kiegroup.org "myapp" is invalid: spec.objects.processMigration.database.externalConfig.jdbcURL: Required value. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.objects.processMigration.database.externalConfig.jdbcURL, message=Required value, reason=FieldValueRequired, additionalProperties={})], group=app.kiegroup.org, kind=KieApp, name=myapp, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=KieApp.app.kiegroup.org "myapp" is invalid: spec.objects.processMigration.database.externalConfig.jdbcURL: Required value, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
Is expected that configuration for external DB will be same for Kie Server and PIM.
Configuration for datbase in Kie Server: https://github.com/kiegroup/kie-cloud-operator/blob/master/deploy/crds/kieapp.crd.yaml#L439-L517
Configuration for databse in PIM: https://github.com/kiegroup/kie-cloud-operator/blob/master/deploy/crds/kieapp.crd.yaml#L703-L758