Skip to content

Commit

Permalink
Add eventing sonataflowplatform spec in chart template
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Nov 14, 2024
1 parent 4e33710 commit 02195ff
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bundle/manifests/rhdh.redhat.com_orchestrators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions config/crd/bases/rhdh.redhat.com_orchestrators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions helm-charts/orchestrator/templates/sonataflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02195ff

Please sign in to comment.