diff options
author | mpriyank <priyank.maheshwari@est.tech> | 2023-03-30 15:45:07 +0100 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2023-04-12 13:55:55 +0000 |
commit | fb475add9189b557ad79245baeac9e4962f8040f (patch) | |
tree | 62f3e4d75f0f1c30652d60be76c1f231b7b32b18 /kubernetes/cps/templates | |
parent | 4ba4ad8a569aae6b86da4badfde2d4fdd75f8c43 (diff) |
[CPS] Add topics and parameters
Add few topic for cps-and-ncmp and ncmp-dmi-plugin.
Followed the approach to globally provide the topics and user access
ALL for all the topics at the moment.
Issue-ID: CPS-1534
Change-Id: Ic184df5ab74d269fe9aeeadac3d89da16a3f84f1
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'kubernetes/cps/templates')
-rw-r--r-- | kubernetes/cps/templates/cps-kafka-topic.yaml | 40 | ||||
-rw-r--r-- | kubernetes/cps/templates/cps-kafka-user.yaml | 32 |
2 files changed, 72 insertions, 0 deletions
diff --git a/kubernetes/cps/templates/cps-kafka-topic.yaml b/kubernetes/cps/templates/cps-kafka-topic.yaml index c3592bcec5..88076471f7 100644 --- a/kubernetes/cps/templates/cps-kafka-topic.yaml +++ b/kubernetes/cps/templates/cps-kafka-topic.yaml @@ -43,4 +43,44 @@ metadata: spec: config: retention.ms: {{ .Values.config.dmiCmEventsTopic.retentionMs }} +--- +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: {{ .Values.config.ncmpCmAvcSubscriptionTopic.name }} + labels: + strimzi.io/cluster: {{ include "common.release" . }}-strimzi +spec: + config: + retention.ms: {{ .Values.config.ncmpCmAvcSubscriptionTopic.retentionMs }} +--- +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: {{ .Values.config.ncmpCmEventsTopic.name }} + labels: + strimzi.io/cluster: {{ include "common.release" . }}-strimzi +spec: + config: + retention.ms: {{ .Values.config.ncmpCmEventsTopic.retentionMs }} +--- +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: {{ .Values.config.dmiCmAvcSubscriptionTopic.name }} + labels: + strimzi.io/cluster: {{ include "common.release" . }}-strimzi +spec: + config: + retention.ms: {{ .Values.config.dmiCmAvcSubscriptionTopic.retentionMs }} +--- +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: {{ .Values.config.dmiCmAvcSubscriptionResponseTopic.name }} + labels: + strimzi.io/cluster: {{ include "common.release" . }}-strimzi +spec: + config: + retention.ms: {{ .Values.config.dmiCmAvcSubscriptionResponseTopic.retentionMs }} {{- end }}
\ No newline at end of file diff --git a/kubernetes/cps/templates/cps-kafka-user.yaml b/kubernetes/cps/templates/cps-kafka-user.yaml index 469dddae86..154c116bd1 100644 --- a/kubernetes/cps/templates/cps-kafka-user.yaml +++ b/kubernetes/cps/templates/cps-kafka-user.yaml @@ -50,4 +50,36 @@ spec: type: topic name: {{ .Values.config.dmiCmEventsTopic.name }} operation: All + - resource: + type: group + name: {{ .Values.config.ncmpCmAvcSubscriptionTopic.consumer.groupId }} + operation: All + - resource: + type: topic + name: {{ .Values.config.ncmpCmAvcSubscriptionTopic.name }} + operation: All + - resource: + type: group + name: {{ .Values.config.ncmpCmEventsTopic.consumer.groupId }} + operation: All + - resource: + type: topic + name: {{ .Values.config.ncmpCmEventsTopic.name }} + operation: All + - resource: + type: group + name: {{ .Values.config.dmiCmAvcSubscriptionTopic.consumer.groupId }} + operation: All + - resource: + type: topic + name: {{ .Values.config.dmiCmAvcSubscriptionTopic.name }} + operation: All + - resource: + type: group + name: {{ .Values.config.dmiCmAvcSubscriptionResponseTopic.consumer.groupId }} + operation: All + - resource: + type: topic + name: {{ .Values.config.dmiCmAvcSubscriptionResponseTopic.name }} + operation: All {{- end }}
\ No newline at end of file |