-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allow Ook to read from squarebot's app mentions to permit chatbot interface.
- Loading branch information
1 parent
ed6dc4c
commit 30d532e
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
applications/sasquatch/charts/square-events/templates/ook-topics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
45 changes: 45 additions & 0 deletions
45
applications/sasquatch/charts/square-events/templates/ook-user.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "*" |