dmartinol commented on code in PR #367:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/367#discussion_r1467744875


##########
controllers/profiles/dev/states_dev.go:
##########
@@ -62,23 +62,26 @@ func (e *ensureRunningWorkflowState) CanReconcile(workflow 
*operatorapi.SonataFl
 func (e *ensureRunningWorkflowState) Do(ctx context.Context, workflow 
*operatorapi.SonataFlow) (ctrl.Result, []client.Object, error) {
        var objs []client.Object
 
-       flowDefCM, _, err := e.ensurers.definitionConfigMap.Ensure(ctx, 
workflow, ensureWorkflowDefConfigMapMutator(workflow))
-       if err != nil {
-               return ctrl.Result{Requeue: false}, objs, err
-       }
-       objs = append(objs, flowDefCM)
-
        devBaseContainerImage := workflowdef.GetDefaultWorkflowDevModeImageTag()
        // check if the Platform available
        pl, err := platform.GetActivePlatform(ctx, e.C, workflow.Namespace)
        if err == nil && len(pl.Spec.DevMode.BaseImage) > 0 {
                devBaseContainerImage = pl.Spec.DevMode.BaseImage
        }
-       propsCM, _, err := e.ensurers.propertiesConfigMap.Ensure(ctx, workflow, 
common.WorkflowPropertiesMutateVisitor(ctx, e.StateSupport.Catalog, workflow, 
pl))
+       flowDefCM, _, err := e.ensurers.definitionConfigMap.Ensure(ctx, 
workflow, pl, ensureWorkflowDefConfigMapMutator(workflow, pl))
+       if err != nil {
+               return ctrl.Result{Requeue: false}, objs, err
+       }
+       objs = append(objs, flowDefCM)
+       userPropsCM, _, err := e.ensurers.userPropsConfigMap.Ensure(ctx, 
workflow, pl)
+       if err != nil {
+               return ctrl.Result{Requeue: false}, objs, err
+       }
+       managedPropsCM, _, err := e.ensurers.managedPropsConfigMap.Ensure(ctx, 
workflow, pl, common.UserPropertiesMutateVisitor(ctx, e.StateSupport.Catalog, 
workflow, pl, userPropsCM.(*corev1.ConfigMap)))

Review Comment:
   Yes, the idea is to hold only managed props, but the checksum is calculated 
on the aggregated string "user props, managed props", in order to detect any 
possible change



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