Skip to content

Commit

Permalink
Add topic creation to ts-salkafka user in strimzi-kafka chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
mareuter committed Nov 19, 2024
1 parent 470aff0 commit 2f7af95
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/sasquatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ Rubin Observatory's telemetry service
| strimzi-kafka.users.replicator.enabled | bool | `false` | Enable user replicator (used by Mirror Maker 2 and required at both source and target clusters) |
| strimzi-kafka.users.telegraf.enabled | bool | `false` | Enable user telegraf (deployed by parent Sasquatch chart) |
| strimzi-kafka.users.tsSalKafka.enabled | bool | `false` | Enable user ts-salkafka, used at the telescope environments |
| strimzi-kafka.users.tsSalKafka.topics | list | `[]` | Create topics for the ts-salkafka user not controlled by CSCs |
| telegraf-kafka-consumer.affinity | object | `{}` | Affinity for pod assignment |
| telegraf-kafka-consumer.args | list | `[]` | Arguments passed to the Telegraf agent containers |
| telegraf-kafka-consumer.enabled | bool | `false` | Wether the Telegraf Kafka Consumer is enabled |
Expand Down
1 change: 1 addition & 0 deletions applications/sasquatch/charts/strimzi-kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ A subchart to deploy Strimzi Kafka components for Sasquatch.
| users.replicator.enabled | bool | `false` | Enable user replicator (used by Mirror Maker 2 and required at both source and target clusters) |
| users.telegraf.enabled | bool | `false` | Enable user telegraf (deployed by parent Sasquatch chart) |
| users.tsSalKafka.enabled | bool | `false` | Enable user ts-salkafka, used at the telescope environments |
| users.tsSalKafka.topics | list | `[]` | Create topics for the ts-salkafka user not controlled by CSCs |
15 changes: 15 additions & 0 deletions applications/sasquatch/charts/strimzi-kafka/templates/topics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.users.tsSalKafka.enabled }}
{{- $cluster := .Values.cluster.name }}
{{- range $topic := .Values.users.tsSalKafka.topics }}
---
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaTopic
metadata:
name: {{ $topic }}
labels:
strimzi.io/cluster: {{ $cluster }}
spec:
replicas: 3
partitions: 1
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions applications/sasquatch/charts/strimzi-kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ users:
# -- Enable user ts-salkafka, used at the telescope environments
enabled: false

# -- Create topics for the ts-salkafka user not controlled by CSCs
topics: []

kafdrop:
# -- Enable user Kafdrop (deployed by parent Sasquatch chart).
enabled: false
Expand Down

0 comments on commit 2f7af95

Please sign in to comment.