Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-276

[operator] Make the workflow properties available when the associated image is generated

XMLWordPrintable

    • False
    • None
    • False
    • 0
    • 0% 0%

      Imagine that we have the workflow greeting, with the associated greeting-props configmap.

       

      Right now, by using for example a SonataFlowPlatform we have the ability to configure, for example additional extensions, and other tunings

      build:
        template:
          buildArgs:
            - name: QUARKUS_EXTENSIONS
              value: org.kie.kogito:kogito-addons-quarkus-jobs-knative-eventing:2.0.0-SNAPSHOT,org.kie.kogito:kogito-addons-quarkus-persistence-jdbc:2.0.0-SNAPSHOT,io.quarkus:quarkus-jdbc-postgresql:2.16.10.Final,io.quarkus:quarkus-agroal:2.16.10.Final
       

      However, we don't have an easy way to tune build time properties, because the build image build is produced before the properties is generated.
       
      I could be nice to implement somehow, that the greeting-props is generated before the workflow image is generated, and, then, make this values available at the image build time.
       
      Why can this be useful for:
       
      1) simplicity, each workflow has all the properties in one place, and all are considered both at build time and runtime.
       
      2) we have the chance to set build time properties, something that right now is very tricky or difficult. Note that even some kogito addons use build time properties. 
       

            wmedvede@redhat.com Walter Medvedeo
            wmedvede@redhat.com Walter Medvedeo
            Dominik Hanak Dominik Hanak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: