aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/cps/components/ncmp-dmi-plugin
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-05-05 08:46:04 +0000
committerGerrit Code Review <gerrit@onap.org>2023-05-05 08:46:04 +0000
commit1a76edf1159156d832e62c268b54fd727f82057f (patch)
tree2347470d710e6d02f1acf79bc0e0f3f26febe822 /kubernetes/cps/components/ncmp-dmi-plugin
parent797229eebacfb1ec6b8c8b5cfae4a825d8450050 (diff)
parent6fc407db4f8cf62fcf6ce2fba332cdb9a8762bf2 (diff)
Merge "[CPS] Parameterize topics in application"
Diffstat (limited to 'kubernetes/cps/components/ncmp-dmi-plugin')
-rw-r--r--kubernetes/cps/components/ncmp-dmi-plugin/resources/config/application-helm.yml5
-rw-r--r--kubernetes/cps/components/ncmp-dmi-plugin/values.yaml25
2 files changed, 26 insertions, 4 deletions
diff --git a/kubernetes/cps/components/ncmp-dmi-plugin/resources/config/application-helm.yml b/kubernetes/cps/components/ncmp-dmi-plugin/resources/config/application-helm.yml
index 7d764bf589..428a553de6 100644
--- a/kubernetes/cps/components/ncmp-dmi-plugin/resources/config/application-helm.yml
+++ b/kubernetes/cps/components/ncmp-dmi-plugin/resources/config/application-helm.yml
@@ -57,6 +57,11 @@ spring.kafka.security.protocol: SASL_PLAINTEXT
spring.kafka.properties.sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
spring.kafka.properties.sasl.jaas.config: ${SASL_JAAS_CONFIG}
+# Kafka Topics
+{{- if .Values.topics.config }}
+{{ toYaml .Values.topics.config | nindent 2 }}
+{{- end }}
+
{{- if .Values.config.additional }}
{{ toYaml .Values.config.additional | nindent 2 }}
{{- end }}
diff --git a/kubernetes/cps/components/ncmp-dmi-plugin/values.yaml b/kubernetes/cps/components/ncmp-dmi-plugin/values.yaml
index 59a64905d1..fcc4808098 100644
--- a/kubernetes/cps/components/ncmp-dmi-plugin/values.yaml
+++ b/kubernetes/cps/components/ncmp-dmi-plugin/values.yaml
@@ -178,19 +178,36 @@ updateStrategy:
maxUnavailable: 0
maxSurge: 1
-# Strimzi KafkaUser config
+# Strimzi KafkaUser and Topic config
+kafkaTopic:
+ - name: &ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic ncmp-dmi-cm-avc-subscription-ncmp-dmi-plugin
+ retentionMs: 7200000
+ segmentBytes: 1073741824
+ - name: &dmiNcmpCmAvcSubscriptionTopic dmi-ncmp-cm-avc-subscription
+ retentionMs: 7200000
+ segmentBytes: 1073741824
+ - name: &ncmpAsyncM2MTopic ncmp-async-m2m
+ retentionMs: 7200000
+ segmentBytes: 1073741824
+
kafkaUser:
authenticationType: scram-sha-512
acls:
- name: ncmp-dmi-plugin-group
type: group
operations: [Read]
- - name: ncmp-dmi-cm-avc-subscription-ncmp-dmi-plugin
+ - name: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic
type: topic
operations: [Read]
- - name: dmi-ncmp-cm-avc-subscription
+ - name: *dmiNcmpCmAvcSubscriptionTopic
type: topic
operations: [Write]
- - name: ncmp-async-m2m
+ - name: *ncmpAsyncM2MTopic
type: topic
operations: [Write]
+
+topics:
+ config:
+ app.ncmp.async.topic: *ncmpAsyncM2MTopic
+ app.dmi.avc.subscription-topic: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic
+ app.dmi.avc.subscription-response-topic: *dmiNcmpCmAvcSubscriptionTopic