From edf923c93cd5b2e5fe27133cb6bd1fdf54659ea5 Mon Sep 17 00:00:00 2001 From: Pavan <25031267+Pavan-SAP@users.noreply.github.com> Date: Thu, 15 Oct 2026 16:43:00 +0200 Subject: [PATCH] [Misc] Subscription concurrency config added Add support to configure Subscription concurrency. --- api/v1alpha1/capoperator_types.go | 2 ++ chart/README.md | 1 + chart/templates/controller-deployment.yaml | 4 ++++ chart/values.yaml | 2 ++ config/crd/operator.sme.sap.com_capoperators.yaml | 2 ++ 5 files changed, 11 insertions(+) diff --git a/api/v1alpha1/capoperator_types.go b/api/v1alpha1/capoperator_types.go index ec4e785..c9f1120 100644 --- a/api/v1alpha1/capoperator_types.go +++ b/api/v1alpha1/capoperator_types.go @@ -143,6 +143,8 @@ type MaxConcurrentReconciles struct { Domain string `json:"domain,omitempty"` // Maximum number of concurrent reconciles for the cluster domain ClusterDomain string `json:"clusterDomain,omitempty"` + // Maximum number of concurrent reconciles for the subscription + Subscription string `json:"subscription,omitempty"` } type VersionMonitoring struct { diff --git a/chart/README.md b/chart/README.md index 36c7a66..493b785 100644 --- a/chart/README.md +++ b/chart/README.md @@ -54,6 +54,7 @@ Helm chart to deploy CAP Operator https://sap.github.io/cap-operator/ | controller.maxConcurrentReconciles.capTenantOperation | string | `""` | The maximum number of concurrent reconciles (e.g. "10") for the cap tenant operation | | controller.maxConcurrentReconciles.domain | string | `""` | The maximum number of concurrent reconciles (e.g. "1") for the domain | | controller.maxConcurrentReconciles.clusterDomain | string | `""` | The maximum number of concurrent reconciles (e.g. "1") for the cluster domain | +| controller.maxConcurrentReconciles.subscription | string | `""` | The maximum number of concurrent reconciles (e.g. "10") for the subscription | | controller.versionMonitoring.prometheusAddress | string | `""` | The URL of the Prometheus server from which metrics related to managed application versions can be queried | | controller.versionMonitoring.metricsEvaluationInterval | string | `"1h"` | The duration (example 2h) after which versions are evaluated for deletion; based on specified workload metrics | | controller.versionMonitoring.promClientAcquireRetryDelay | string | `"1h"` | The duration (example 10m) to wait before retrying to acquire Prometheus client and verify connection, after a failed attempt | diff --git a/chart/templates/controller-deployment.yaml b/chart/templates/controller-deployment.yaml index ee05b7c..7f3abf5 100644 --- a/chart/templates/controller-deployment.yaml +++ b/chart/templates/controller-deployment.yaml @@ -104,6 +104,10 @@ spec: - name: MAX_CONCURRENT_RECONCILES_CLUSTER_DOMAIN value: "{{ .clusterDomain }}" {{- end }} + {{- if .subscription }} + - name: MAX_CONCURRENT_RECONCILES_SUBSCRIPTION + value: "{{ .subscription }}" + {{- end }} {{- end }} {{- with .Values.controller.versionMonitoring }} {{- if .prometheusAddress }} diff --git a/chart/values.yaml b/chart/values.yaml index f8ab0ec..9d73230 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -100,6 +100,8 @@ controller: domain: "" # -- The maximum number of concurrent reconciles (e.g. "1") for the cluster domain clusterDomain: "" + # -- The maximum number of concurrent reconciles (e.g. "10") for the subscription + subscription: "" versionMonitoring: # -- The URL of the Prometheus server from which metrics related to managed application versions can be queried prometheusAddress: "" diff --git a/config/crd/operator.sme.sap.com_capoperators.yaml b/config/crd/operator.sme.sap.com_capoperators.yaml index 8d4fc4b..7087ddc 100644 --- a/config/crd/operator.sme.sap.com_capoperators.yaml +++ b/config/crd/operator.sme.sap.com_capoperators.yaml @@ -498,6 +498,8 @@ spec: type: string domain: type: string + subscription: + type: string type: object nodeSelector: additionalProperties: