diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2023-01-18 17:22:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-01-18 17:22:48 +0000 |
commit | 2f43e96c6a84b737590cc4db8a5d53fbac8fd586 (patch) | |
tree | ecb8536bdd822f81fcf8ff94409fc6611f91e28e /kubernetes | |
parent | 163086b14def48a1c3f43cf90057d0702f601523 (diff) | |
parent | 709ea3f8ba1fc234548d13f818c7ec67e50a9ea8 (diff) |
Merge "[CPS] Add new Topic for CPS-NCMP AVC Events"
Diffstat (limited to 'kubernetes')
-rw-r--r-- | kubernetes/cps/templates/cps-kafka-topic.yaml | 10 | ||||
-rw-r--r-- | kubernetes/cps/templates/cps-kafka-user.yaml | 8 | ||||
-rwxr-xr-x | kubernetes/cps/values.yaml | 5 |
3 files changed, 23 insertions, 0 deletions
diff --git a/kubernetes/cps/templates/cps-kafka-topic.yaml b/kubernetes/cps/templates/cps-kafka-topic.yaml index b4ecfcd9c4..33613bc39f 100644 --- a/kubernetes/cps/templates/cps-kafka-topic.yaml +++ b/kubernetes/cps/templates/cps-kafka-topic.yaml @@ -45,4 +45,14 @@ metadata: spec: config: retention.ms: {{ .Values.config.ncmpAsyncM2MTopic.retentionMs }} +--- +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: {{ .Values.config.dmiCmEventsTopic.name }} + labels: + strimzi.io/cluster: {{ include "common.release" . }}-strimzi +spec: + config: + retention.ms: {{ .Values.config.dmiCmEventsTopic.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 fafc8c3369..229e5dc2d5 100644 --- a/kubernetes/cps/templates/cps-kafka-user.yaml +++ b/kubernetes/cps/templates/cps-kafka-user.yaml @@ -54,4 +54,12 @@ spec: type: topic name: {{ .Values.config.ncmpAsyncM2MTopic.name }} operation: All + - resource: + type: group + name: {{ .Values.config.dmiCmEventsTopic.consumer.groupId }} + operation: All + - resource: + type: topic + name: {{ .Values.config.dmiCmEventsTopic.name }} + operation: All {{- end }}
\ No newline at end of file diff --git a/kubernetes/cps/values.yaml b/kubernetes/cps/values.yaml index f3e6198ac1..97addae930 100755 --- a/kubernetes/cps/values.yaml +++ b/kubernetes/cps/values.yaml @@ -65,6 +65,11 @@ config: retentionMs: 600000 consumer: groupId: ncmp-group + dmiCmEventsTopic: + name: dmi-cm-events + retentionMs: 7200000 + consumer: + groupId: ncmp-group # Enable all CPS components by default cps-core: |