Skip to content

Commit

Permalink
Add Ook Kafka user and topics
Browse files Browse the repository at this point in the history
- Allow Ook to read from squarebot's app mentions to permit chatbot
  interface.
  • Loading branch information
jonathansick committed Jul 19, 2023
1 parent ed6dc4c commit 30d532e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
name: "lsst.square-events.ook.ingest"
labels:
strimzi.io/cluster: {{ .Values.cluster.name }}
spec:
partitions: 4
replicas: 3
config:
# http://kafka.apache.org/documentation/#topicconfigs
retention.ms: 604800000 # 1 week
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
name: ook
labels:
strimzi.io/cluster: {{ .Values.cluster.name }}
spec:
template:
secret:
metadata:
annotations:
replicator.v1.mittwald.de/replication-allowed: "true"
replicator.v1.mittwald.de/replication-allowed-namespaces: "ook"
authentication:
type: tls
authorization:
type: simple
acls:
- resource:
type: group
name: "ook"
patternType: literal
operations:
- "Read"
host: "*"
- resource:
type: topic
name: "lsst.square-events.ook.ingest"
patternType: literal
operations:
- "Describe"
- "Read"
- "Write"
host: "*"
- resource:
type: topic
name: "lsst.square-events.squarebot.slack.app.mention"
patternType: literal
type: allow
host: "*"
operations:
- "Read"
- "Describe"
host: "*"

0 comments on commit 30d532e

Please sign in to comment.