diff --git a/bundle/manifests/orchestrator-operator.clusterserviceversion.yaml b/bundle/manifests/orchestrator-operator.clusterserviceversion.yaml index 4d02da3..398f545 100644 --- a/bundle/manifests/orchestrator-operator.clusterserviceversion.yaml +++ b/bundle/manifests/orchestrator-operator.clusterserviceversion.yaml @@ -21,6 +21,9 @@ metadata: "orchestrator": { "namespace": "sonataflow-infra", "sonataflowPlatform": { + "monitoring": { + "enabled": true + }, "resources": { "limits": { "cpu": "500m", diff --git a/bundle/manifests/rhdh.redhat.com_orchestrators.yaml b/bundle/manifests/rhdh.redhat.com_orchestrators.yaml index 9052380..13df8ca 100644 --- a/bundle/manifests/rhdh.redhat.com_orchestrators.yaml +++ b/bundle/manifests/rhdh.redhat.com_orchestrators.yaml @@ -88,6 +88,15 @@ spec: Job Service container image to be used instead of the provided one by SonataFlow type: string + monitoring: + description: Contains the monitoring configuration fields + properties: + enabled: + default: true + description: Enabled determines whether monitoring should + be enabled. Defaults to true. + type: boolean + 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 7a3da6f..7d4d0ef 100644 --- a/config/crd/bases/rhdh.redhat.com_orchestrators.yaml +++ b/config/crd/bases/rhdh.redhat.com_orchestrators.yaml @@ -362,6 +362,14 @@ spec: sonataflowPlatform: description: SonataflowPlatform contains the pod resource configuration to be used for the data index and job services properties: + monitoring: + description: Contains the monitoring configuration fields + properties: + enabled: + description: Enabled determines whether monitoring should be enabled. Defaults to true. + default: true + type: boolean + type: object resources: description: Resources contains the requests and limit of CPU and memory resources for the pod instance type: object diff --git a/config/samples/_v1alpha2_orchestrator.yaml b/config/samples/_v1alpha2_orchestrator.yaml index 1dd56b3..711cf39 100644 --- a/config/samples/_v1alpha2_orchestrator.yaml +++ b/config/samples/_v1alpha2_orchestrator.yaml @@ -77,6 +77,8 @@ spec: orchestrator: namespace: "sonataflow-infra" # Namespace where sonataflow's workflows run. The value is captured when running the setup.sh script and stored as a label in the selected namespace. User can override the value by populating this field. Defaults to `sonataflow-infra`. sonataflowPlatform: + monitoring: + enabled: true resources: requests: memory: "64Mi" diff --git a/helm-charts/orchestrator/templates/sonataflows.yaml b/helm-charts/orchestrator/templates/sonataflows.yaml index e6523c9..56a88b3 100644 --- a/helm-charts/orchestrator/templates/sonataflows.yaml +++ b/helm-charts/orchestrator/templates/sonataflows.yaml @@ -23,6 +23,8 @@ metadata: annotations: "meta.helm.sh/release-name": {{ .Release.Name}} spec: + monitoring: + enabled: {{ .Values.orchestrator.sonataflowPlatform.monitoring.enabled }} build: template: resources: diff --git a/helm-charts/orchestrator/values.schema.json b/helm-charts/orchestrator/values.schema.json index f921a3a..5414b29 100644 --- a/helm-charts/orchestrator/values.schema.json +++ b/helm-charts/orchestrator/values.schema.json @@ -1181,6 +1181,9 @@ "orchestrator": { "namespace": "sonataflow-infra", "sonataflowPlatform": { + "monitoring": { + "enabled": false + }, "resources": { "requests": { "memory": "64Mi", diff --git a/helm-charts/orchestrator/values.yaml b/helm-charts/orchestrator/values.yaml index 69a9235..72883c2 100644 --- a/helm-charts/orchestrator/values.yaml +++ b/helm-charts/orchestrator/values.yaml @@ -79,6 +79,8 @@ postgres: orchestrator: namespace: "sonataflow-infra" # Namespace where sonataflow's workflows run. The value is captured when running the setup.sh script and stored as a label in the selected namespace. User can override the value by populating this field. Defaults to `sonataflow-infra`. sonataflowPlatform: + monitoring: + enabled: true resources: requests: memory: "64Mi"