diff --git a/bundle/manifests/rhdh.redhat.com_orchestrators.yaml b/bundle/manifests/rhdh.redhat.com_orchestrators.yaml index 356d05d4..cf286a44 100644 --- a/bundle/manifests/rhdh.redhat.com_orchestrators.yaml +++ b/bundle/manifests/rhdh.redhat.com_orchestrators.yaml @@ -79,6 +79,16 @@ spec: Job Service container image to be used instead of the provided one by SonataFlow type: string + broker: + description: Broker contains the name and namespace of the broker to use if using Knative eventing for components communications + properties: + name: + description: name describes the name of the broker to use + type: string + namespace: + description: namespace describes the namespace on which the broker to use is deployed + type: string + type: object resources: description: Resources contains the requests and limit of CPU and memory resources for the pod instance diff --git a/config/crd/bases/rhdh.redhat.com_orchestrators.yaml b/config/crd/bases/rhdh.redhat.com_orchestrators.yaml index ccc9079b..afd2d5b3 100644 --- a/config/crd/bases/rhdh.redhat.com_orchestrators.yaml +++ b/config/crd/bases/rhdh.redhat.com_orchestrators.yaml @@ -443,6 +443,17 @@ spec: description: This field contains the location of a custom Job Service container image to be used instead of the provided one by SonataFlow default: type: string + broker: + description: Broker contains the name and namespace of the broker to use if using Knative eventing for components communications + properties: + name: + description: name describes the name of the broker to use + type: string + namespace: + description: namespace describes the namespace on which the broker to use is deployed + type: string + type: object + type: object type: object tekton: diff --git a/helm-charts/orchestrator/templates/sonataflows.yaml b/helm-charts/orchestrator/templates/sonataflows.yaml index e6523c95..ffdadd70 100644 --- a/helm-charts/orchestrator/templates/sonataflows.yaml +++ b/helm-charts/orchestrator/templates/sonataflows.yaml @@ -32,6 +32,15 @@ spec: limits: memory: {{ .Values.orchestrator.sonataflowPlatform.resources.limits.memory }} cpu: {{ .Values.orchestrator.sonataflowPlatform.resources.limits.cpu }} + {{- if (and (.Values.orchestrator.sonataflowPlatform.broker.name) (.Values.orchestrator.sonataflowPlatform.broker.name)) }} + eventing: + broker: + ref: + apiVersion: eventing.knative.dev/v1 + kind: Broker + name: {{ .Values.orchestrator.sonataflowPlatform.broker.name }} + namespace: {{ .Values.orchestrator.sonataflowPlatform.broker.namespace }} + {{- end }} services: dataIndex: enabled: true