-
Bug
-
Resolution: Done
-
Major
-
1.42.0.Final
-
False
-
None
-
False
-
---
-
---
-
-
-
2023 Week 30-32 (from Jul 24), 2023 Week 33-35 (from Aug 14)
When creating a prod profile SonataFlow instance with resources, they are not being added to the build context.
CR Example:
apiVersion: sonataflow.org/v1alpha08 kind: SonataFlow metadata: name: eloy-di annotations: sonataflow.org/description: Eloy example on k8s! sonataflow.org/version: 0.0.2 sonataflow.org/profile: prod spec: resources: configMaps: - configMap: name: service-files workflowPath: specs flow: annotations: - test - foo functions: - name: book operation: "specs/openapi.json#get_book_book_get" type: rest start: openapiCall states: - name: openapiCall type: "operation" end: true actions: - name: "bookAction" functionRef: refName: book arguments: age: 10 author: "${.userData}"
SonataFlowPlatform:
apiVersion: sonataflow.org/v1alpha08 kind: SonataFlowPlatform metadata: name: sonataflow-platform spec: build: config: registry: address: "quay.io/parodos" organization: "parodos" secret: parodos-kogitoexample-pull-secret strategyOptions: KanikoBuildCacheEnabled: "true"
Error:
[INFO] Finished at: 2023-08-11T15:57:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.16.9.Final:generate-code (default) on project serverless-workflow-project: Quarkus code generation phase has failed: InvocationTargetException: cannot find classpath resource specs/openapi.json -> [Help 1]
- is related to
-
KOGITO-9729 SonataFlow builder image is not preserving resources path
- Resolved
-
SRVLOGIC-198 SonataFlow builder image is not preserving resources path
- Closed