Skip to content

Commit b82ee66

Browse files
chore: add kafka config options (#25)
1 parent ac5b946 commit b82ee66

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

charts/ctrlplane/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: ctrlplane
33
description: Ctrlplane Helm chart for Kubernetes
44
type: application
5-
version: 0.9.3
5+
version: 0.10.0
66
appVersion: "1.0.0"
77

88
maintainers:

charts/ctrlplane/charts/workspace-engine/templates/statefulset.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ spec:
4444
protocol: TCP
4545
env:
4646
- name: KAFKA_BROKERS
47-
value: {{ .Values.global.kafkaBrokers | quote }}
47+
value: {{ .Values.global.kafka.brokers | quote }}
48+
- name: KAFKA_GROUP_ID
49+
value: {{ .Values.global.kafka.groupId | quote }}
50+
- name: KAFKA_TOPIC
51+
value: {{ .Values.global.kafka.topic | quote }}
4852

4953
- name: POD_NAME
5054
valueFrom:

charts/ctrlplane/templates/NOTES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@
4848
{{- else if ne .Values.global.integrations.github.bot.clientSecret "" }}
4949
⚠ GitHub bot configured directly in values
5050
{{- end }}
51+
{{- if .Values.global.integrations.azure }}
5152
{{- if include "ctrlplane.isValueFrom" .Values.global.integrations.azure.appClientSecret }}
5253
✓ Azure app configured via secret reference
5354
{{- else if ne .Values.global.integrations.azure.appClientSecret "" }}
5455
⚠ Azure app configured directly in values
5556
{{- end }}
57+
{{- end }}
5658

5759
3. Using valueFrom pattern for secrets:
5860

charts/ctrlplane/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ global:
5959
port: "5432"
6060
database: "ctrlplane"
6161

62-
kafkaBrokers: localhost:9092
62+
kafka:
63+
brokers: localhost:9092
64+
groupId: workspace-engine
65+
topic: workspace-events
6366

6467
integrations:
6568
github:

0 commit comments

Comments
 (0)