From 99af61faa49c2e3229dfd907eba72ca3997beb9e Mon Sep 17 00:00:00 2001 From: Ljupco Vangelski Date: Wed, 22 Mar 2023 17:28:47 +0100 Subject: [PATCH] [#4035] Customize number of partitions (#4036) --- .../helm-chart/templates/provisioning/job-kafka.yaml | 4 +++- infrastructure/helm-chart/values.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/infrastructure/helm-chart/templates/provisioning/job-kafka.yaml b/infrastructure/helm-chart/templates/provisioning/job-kafka.yaml index 023587bb7f..a6dab65f1a 100644 --- a/infrastructure/helm-chart/templates/provisioning/job-kafka.yaml +++ b/infrastructure/helm-chart/templates/provisioning/job-kafka.yaml @@ -14,8 +14,10 @@ spec: envFrom: - configMapRef: name: kafka-config - {{ if .Values.provisioning.kafka.namespaceTopics }} env: + - name: PARTITIONS + value: "{{ .Values.provisioning.kafka.partitions }}" + {{ if .Values.provisioning.kafka.namespaceTopics }} - name: AIRY_CORE_NAMESPACE value: {{ .Release.Namespace }} {{ end }} diff --git a/infrastructure/helm-chart/values.yaml b/infrastructure/helm-chart/values.yaml index fe9335bacd..e4f6afa182 100644 --- a/infrastructure/helm-chart/values.yaml +++ b/infrastructure/helm-chart/values.yaml @@ -21,6 +21,7 @@ provisioning: image: ghcr.io/airyhq/infrastructure/kafka imageTag: 3.2.0 namespaceTopics: false + partitions: 10 tools: segment: enabled: true