Skip to content

Commit 3517cbe

Browse files
committed
fix: add Kafka topics configuration to metadata Helm values
- Add kafka.topics section to values.yaml with partitions, replicas, retention, and segment settings - Add kafka schema definition to values.schema.json for Helm validation - Fixes Helm template error: nil pointer evaluating interface {}.topics
1 parent 716dec1 commit 3517cbe

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

boundaries/metadata/ops/metadata/values.schema.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,38 @@
219219
},
220220
"type": "object"
221221
},
222+
"kafka": {
223+
"properties": {
224+
"topics": {
225+
"properties": {
226+
"partitions": {
227+
"type": "integer"
228+
},
229+
"replicas": {
230+
"type": "integer"
231+
},
232+
"retention": {
233+
"properties": {
234+
"ms": {
235+
"type": "integer"
236+
}
237+
},
238+
"type": "object"
239+
},
240+
"segment": {
241+
"properties": {
242+
"bytes": {
243+
"type": "integer"
244+
}
245+
},
246+
"type": "object"
247+
}
248+
},
249+
"type": "object"
250+
}
251+
},
252+
"type": "object"
253+
},
222254
"monitoring": {
223255
"properties": {
224256
"enabled": {

boundaries/metadata/ops/metadata/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@ service:
132132
protocol: TCP
133133
public: true
134134

135+
# ==============================================================================
136+
# Kafka topics configuration
137+
kafka:
138+
topics:
139+
partitions: 1
140+
replicas: 3 # Minimum replicas for production Kafka cluster
141+
retention:
142+
ms: 7200000 # 2 hours
143+
segment:
144+
bytes: 31457280 # 30MB
145+
135146
# ==============================================================================
136147
# Prometheus Operator ServiceMonitor configuration
137148
monitoring:

0 commit comments

Comments
 (0)