wmedvede commented on code in PR #322: URL: https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/322#discussion_r1462236449
########## test/testdata/persistence/workflow/by_service/02-sonataflow_platform.yaml: ########## @@ -0,0 +1,27 @@ +# Copyright 2024 Apache Software Foundation (ASF) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlowPlatform +metadata: + name: sonataflow-platform +spec: + build: + template: + buildArgs: + - name: QUARKUS_EXTENSIONS + value: org.kie.kogito:kogito-addons-quarkus-jobs-knative-eventing:999-SNAPSHOT,org.kie.kogito:kogito-addons-quarkus-persistence-jdbc:999-SNAPSHOT,io.quarkus:quarkus-jdbc-postgresql:3.2.9.Final,io.quarkus:quarkus-agroal:3.2.9.Final Review Comment: @jordigilh @ricardozanini @tchughesiv @masayag I think we need to assess here, because the persistence is a sort of all or nothing. I mean, if we add the org.kie.kogito:kogito-addons-quarkus-persistence-jdbc:999-SNAPSHOT to the kogito-swf-builder, then, every workflow image we produce must use persistence, otherwise we'll have runtime start-up failures. Additionally, we have the following scenarios: **1) The images is produced externally:** The workflow must come already built with the proper extensions incorporated in the produced image, and users might decide in a per-workflow basis to include the persistence related addons. The operator just relies on the workflow CRD con connect with the DB, and just produce the ENV vars as Jordi is doing. If the image is not ok, it's not the operator problem. Which make sense in my opinion. (right now, AFAIK Parodos team is using the kogito-swf-builder series, however they might eventually produce the images by adding the persistence related extensions in a per-workflow basis, or always add them if they always want persistence) **2) The Image is produced by the operator, and thus, managed by Kaniko or OpenShift based builds, etc.** In these cases, we could eventually manage to add the persistence extensions somehow dynamically, since in the end, for example with the Kaniko build we are producing a sonataflow-my-workflow-builder CM and here we can maybe manage to add these extensions. But, since Parodos is working with 1), I think they should add those extensions in their images build system. -- 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]
