You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "fjtirado (via GitHub)" <gi...@apache.org> on 2024/07/04 07:31:16 UTC

[I] Dynamic OpenAPI configKey [incubator-kie-kogito-serverless-operator]

fjtirado opened a new issue, #501:
URL: https://github.com/apache/incubator-kie-kogito-serverless-operator/issues/501

   ### Description
   
   OpenAPI properties depends on `configKey`
   For example, the property for the URL is of the form 
   `quarkus.rest-client.<configKey>.url`
   `configKey` is currently calculated at build time (there are different alternatives based on the name and content of the openapi spec file being parsed, by default `configKey` is the sanitized file name) 
   The proposal is to allow dynamic calculation of `configKey` at runtime. This will allow appending extra information to the configKey calculated at build time. 
   For example, you can have different url properties depending on a cluster name
   ```
   quarkus.rest-client.<buildTimeConfigKey>.cluster1.url=<cluster1Address>
   quarkus.rest-client.<buildTimeConfigKey>.cluster2.url=<cluster2Address>
   ```
   In order SonataFlow to know which information should be used to calculate configKey, users should add a new property, called `sonataflow.rest-client.dynamic-config-key`, which value must be a jq expression which evaluation will return the value of the dynamic `configKey`
   
   For the previous example, assuming the workflow input has a `clusterName ` which value is `cluster1` or `cluster2`, users must add this line to application.properties.
   
   `sonataflow.rest-client.dynamic-config-key=.clusterName`
   
   ### Implementation ideas
   
   _No response_


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org