Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-9702

[Operator] SonataFlow resources are not being added to container-builder build process

XMLWordPrintable

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

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Tristan Radisson Tristan Radisson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: