From 0e18191abe31be1c33e197a3e164d8fbc8f7cc4c Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Mon, 13 Mar 2023 11:35:48 -0400 Subject: [PATCH] Adding 2 smartvillage Kafka topics and a smartvillage Kafka user (#2763) --- .../overlays/smaug/topics/kustomization.yaml | 2 ++ .../topics/smartvillage-sumo-run-report.yaml | 12 ++++++++++ .../smaug/topics/smartvillage-sumo-run.yaml | 12 ++++++++++ kafka/overlays/smaug/users/kustomization.yaml | 1 + kafka/overlays/smaug/users/smartvillage.yaml | 24 +++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 kafka/overlays/smaug/topics/smartvillage-sumo-run-report.yaml create mode 100644 kafka/overlays/smaug/topics/smartvillage-sumo-run.yaml create mode 100644 kafka/overlays/smaug/users/smartvillage.yaml diff --git a/kafka/overlays/smaug/topics/kustomization.yaml b/kafka/overlays/smaug/topics/kustomization.yaml index f97a07219..d5ecdf2bc 100644 --- a/kafka/overlays/smaug/topics/kustomization.yaml +++ b/kafka/overlays/smaug/topics/kustomization.yaml @@ -32,3 +32,5 @@ resources: - thoth-unrevsolved-package.yaml - thoth-update-provides-source-distro.yaml - ddas-commands.yaml +- smartvillage-sumo-run-report.yaml +- smartvillage-sumo-run.yaml diff --git a/kafka/overlays/smaug/topics/smartvillage-sumo-run-report.yaml b/kafka/overlays/smaug/topics/smartvillage-sumo-run-report.yaml new file mode 100644 index 000000000..042ae261c --- /dev/null +++ b/kafka/overlays/smaug/topics/smartvillage-sumo-run-report.yaml @@ -0,0 +1,12 @@ +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: smartvillage-sumo-run-report + labels: + strimzi.io/cluster: odh-message-bus +spec: + partitions: 2 + replicas: 3 + config: + # message retention period is 6 hours + retention.ms: 21600000 diff --git a/kafka/overlays/smaug/topics/smartvillage-sumo-run.yaml b/kafka/overlays/smaug/topics/smartvillage-sumo-run.yaml new file mode 100644 index 000000000..189af0389 --- /dev/null +++ b/kafka/overlays/smaug/topics/smartvillage-sumo-run.yaml @@ -0,0 +1,12 @@ +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: smartvillage-sumo-run + labels: + strimzi.io/cluster: odh-message-bus +spec: + partitions: 2 + replicas: 3 + config: + # message retention period is 6 hours + retention.ms: 21600000 diff --git a/kafka/overlays/smaug/users/kustomization.yaml b/kafka/overlays/smaug/users/kustomization.yaml index 117984149..046dafb2d 100644 --- a/kafka/overlays/smaug/users/kustomization.yaml +++ b/kafka/overlays/smaug/users/kustomization.yaml @@ -9,3 +9,4 @@ resources: - thoth.yaml - emea-sa-od-demo.yaml - ddas.yaml +- smartvillage.yaml diff --git a/kafka/overlays/smaug/users/smartvillage.yaml b/kafka/overlays/smaug/users/smartvillage.yaml new file mode 100644 index 000000000..a23b18f0f --- /dev/null +++ b/kafka/overlays/smaug/users/smartvillage.yaml @@ -0,0 +1,24 @@ +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaUser +metadata: + name: smartvillage +spec: + authentication: + type: tls + authorization: + acls: + - host: '*' + operation: All + resource: + name: smartvillage- + patternType: prefix + type: topic + type: allow + - host: '*' + operation: All + resource: + name: smartvillage- + patternType: prefix + type: group + type: allow + type: simple