wmedvede commented on code in PR #415:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/415#discussion_r1520135464


##########
controllers/platform/services/properties.go:
##########
@@ -185,19 +186,21 @@ func GenerateDataIndexWorkflowProperties(workflow 
*operatorapi.SonataFlow, platf
 // Never nil.
 func GenerateJobServiceWorkflowProperties(workflow *operatorapi.SonataFlow, 
platform *operatorapi.SonataFlowPlatform) (*properties.Properties, error) {
        props := properties.NewProperties()
-       props.Set(constants.JobServiceRequestEventsConnector, 
constants.QuarkusHTTP)
-       props.Set(constants.JobServiceRequestEventsURL, 
fmt.Sprintf("%s://localhost/v2/jobs/events", constants.JobServiceURLProtocol))
        js := NewJobServiceHandler(platform)
-       if workflow != nil && !profiles.IsDevProfile(workflow) && 
js.IsServiceEnabled() {
-               if workflowdef.HasTimeouts(workflow) {
-                       props.Set(constants.KogitoJobServiceHealthCheckEnabled, 
"true")
-               }
-               p, err := js.GenerateWorkflowProperties()
-               if err != nil {
-                       return nil, err
+       if !profiles.IsDevProfile(workflow) && workflow != nil && 
workflow.Status.Services != nil && workflow.Status.Services.JobServiceRef != 
nil {
+               serviceBaseUrl := workflow.Status.Services.JobServiceRef.Url

Review Comment:
   Ok, many thanks for the explanation.
   The part that wasn't clear to me was "during a workflow's configmap 
properties creation, instead of calling the handler directly, we're using the 
service url directly from **the workflow's status... which has already been 
properly set by the service handlers.**" 
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to