jianrongzhang89 commented on PR #467: URL: https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/467#issuecomment-2185435469
> Hi @jianrongzhang89 , when doing knative deployments of a workflow I have found the following issue. > > You can see the following Use case 3, knative services reproducer: > > https://github.com/flows-examples/techpreview2/tree/main/platforms/data_index_and_jobservice_as_platform_service_postgresql_persistence_knative_eventing/case3-knative-services > > In this case, we mark a workflow to produce a knative service deployment instead of a regular kubernetes one, by using the following field: > > ``` > podTemplate: > deploymentModel: knative > ``` > > see: https://github.com/flows-examples/techpreview2/blob/main/platforms/data_index_and_jobservice_as_platform_service_postgresql_persistence_knative_eventing/case3-knative-services/07-sonataflow_eventstatetimeouts.sw.yaml#L26 > > With that configuration, we create a knative service to produce the workflow deployment. > > And, the Triggers must be adjusted to refer a knative service instead. > > This is what we see now: > > eventstatetimeouts-event1-8b6712a2-8a8a-4def-a4a3-fdbc34b6e828 sonataflow-broker service:eventstatetimeouts 6m27s 1 OK / 7 False Unable to get the Subscriber's URI : failed to get object case3-kn-eventing-knservices/eventstatetimeouts: services "eventstatetimeouts" not found eventstatetimeouts-event2-8b6712a2-8a8a-4def-a4a3-fdbc34b6e828 sonataflow-broker service:eventstatetimeouts 6m27s 1 OK / 7 False Unable to get the Subscriber's URI : failed to get object case3-kn-eventing-knservices/eventstatetimeouts: services "eventstatetimeouts" not found j > > I think the issue is not too much, it's just a matter of taking account that when the triggers are created. The following type must be used instead: > > ``` > subscriber: > ref: > apiVersion: serving.knative.dev/v1 > kind: Service > ``` > > And for the SinkBinding we might have to take into account a similar consideration. > > DataIndex and JobsService are good, will never be knative services. I updated the code to support knative services. -- 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]
