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


##########
internal/controller/profiles/dev/states_dev.go:
##########
@@ -142,6 +151,14 @@ func (e *ensureRunningWorkflowState) Do(ctx 
context.Context, workflow *operatora
        return ctrl.Result{RequeueAfter: constants.RequeueAfterIsRunning}, 
objs, nil
 }
 
+func (e *ensureRunningWorkflowState) ensureServiceMonitor(ctx context.Context, 
workflow *operatorapi.SonataFlow, pl *operatorapi.SonataFlowPlatform) 
(client.Object, error) {
+       if monitoring.IsMonitoringEnabled(pl) {
+               serviceMonitor, _, err := e.ensurers.serviceMonitor.Ensure(ctx, 
workflow)

Review Comment:
   Ok, so the no negative side effects, thanks for the explanation. Yeah, in a 
follow-up PR we can incorporate these nitpicks.
   



-- 
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