aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/cps
diff options
context:
space:
mode:
authorrajesh.kumar <rk00747546@techmahindra.com>2024-09-04 14:14:29 +0530
committerrajesh.kumar <rk00747546@techmahindra.com>2024-09-04 14:14:29 +0530
commitfca08c93306e159cac640937826e69e3ccff32fd (patch)
tree748ac6de6555527ffd76eab6222a45a8ed5e17fb /kubernetes/cps
parent4c0b307d0dcd4220ccf84f7d002c4cf436e4984d (diff)
[CPS][COMMON] Sync newly added cps configurations
Update CPS helm charts for newly added configurations. Issue-ID: OOM-3313 Change-Id: I56c34400dc73c71b936a51260efd240904bdaeae Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
Diffstat (limited to 'kubernetes/cps')
-rw-r--r--kubernetes/cps/components/cps-core/resources/config/application-helm.yml19
-rw-r--r--kubernetes/cps/components/cps-core/values.yaml59
2 files changed, 76 insertions, 2 deletions
diff --git a/kubernetes/cps/components/cps-core/resources/config/application-helm.yml b/kubernetes/cps/components/cps-core/resources/config/application-helm.yml
index 980be74367..e9d4df5fe3 100644
--- a/kubernetes/cps/components/cps-core/resources/config/application-helm.yml
+++ b/kubernetes/cps/components/cps-core/resources/config/application-helm.yml
@@ -3,6 +3,7 @@
# Modifications Copyright (C) 2020 Bell Canada.
# Modifications Copyright (C) 2021-2023 Nordix Foundation.
# Modifications Copyright (C) 2021 Orange
+# Modifications Copyright (C) 2024 TechMahindra Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -43,6 +44,12 @@ security:
username: ${CPS_USERNAME}
password: ${CPS_PASSWORD}
+# Actuator
+management:
+ tracing:
+ propagation:
+ produce: {{ .Values.management.tracing.propagation.produce }}
+
logging:
level:
org:
@@ -71,12 +78,24 @@ spring.kafka.properties.sasl.jaas.config: ${SASL_JAAS_CONFIG}
{{ toYaml .Values.config.additional | nindent 2 }}
{{- end }}
+# cps tracing
+{{- if .Values.tracing }}
+ {{ toYaml .Values.tracing | nindent 2 }}
+{{- end }}
+
# Custom Hazelcast config.
hazelcast:
+ cluster-name: {{ .Values.hazelcast.config.clusterName }}
mode:
kubernetes:
enabled: {{ .Values.hazelcast.config.kubernetesDiscovery }}
service-name: {{ .Values.hazelcast.config.kubernetesServiceName }}
+otel:
+ exporter:
+ otlp:
+ traces:
+ protocol: {{ .Values.otel.config.otlp.traces.protocol }}
+
# Last empty line is required otherwise the last property will be missing from application.yml file in the pod.
diff --git a/kubernetes/cps/components/cps-core/values.yaml b/kubernetes/cps/components/cps-core/values.yaml
index a5cc7e0dcd..94aa67efd3 100644
--- a/kubernetes/cps/components/cps-core/values.yaml
+++ b/kubernetes/cps/components/cps-core/values.yaml
@@ -1,6 +1,7 @@
# Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
# Modifications Copyright (C) 2022 Bell Canada
# Modifications Copyright © 2022-2023 Nordix Foundation
+# Modifications Copyright © 2024 TechMahindra Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -183,7 +184,6 @@ config:
additional:
notification.enabled: true
- notification.data-updated.topic: &dataUpdatedTopic cps.data-updated-events
notification.data-updated.filters.enabled-dataspaces: ""
notification.async.enabled: false
notification.async.executor.core-pool-size: 2
@@ -191,12 +191,16 @@ config:
notification.async.executor.queue-capacity: 500
notification.async.executor.wait-for-tasks-to-complete-on-shutdown: true
notification.async.executor.thread-name-prefix: Async-
+ app.cps.data-updated.change-event-notifications-enabled: true
# Strimzi KafkaUser and Topic config
kafkaTopic:
- name: &dmiCmEventsTopic dmi-cm-events
retentionMs: 7200000
segmentBytes: 1073741824
+ - name: &dataUpdatedTopic cps-data-updated-events
+ retentionMs: 7200000
+ segmentBytes: 1073741824
kafkaUser:
authenticationType: scram-sha-512
@@ -216,17 +220,62 @@ kafkaUser:
- name: &cmAvcSubscriptionTopic cm-avc-subscription
type: topic
operations: [Read]
+ - name: &ncmpCmSubscriptionIn subscription
+ type: topic
+ operations: [Read]
+ - name: &ncmpCmSubscriptionDmiIn ncmp-dmi-cm-avc-subscription
+ type: topic
+ operations: [Read]
+ - name: &ncmpCmSubscriptionDmiOut dmi-ncmp-cm-avc-subscription
+ type: topic
+ operations: [Read]
+ - name: &ncmpCmSubscriptionOut subscription-response
+ type: topic
+ operations: [Read]
+ - name: &ncmpCmEventsTopic cm-events
+ type: topic
+ operations: [Read]
+ - name: &dmiDeviceHeartbeatTopic dmi-device-heartbeat
+ type: topic
+ operations: [Read]
+ - name: &lcmEventsTopic ncmp-events
+ type: topic
+ operations: [Read]
topics:
config:
app.ncmp.async-m2m.topic: *ncmpAsyncM2MTopic
- app.ncmp.avc.subscription-topic: *cmAvcSubscriptionTopic
+ app.ncmp.avc.cm-subscription-ncmp-in: *ncmpCmSubscriptionIn
+ app.ncmp.avc.cm-subscription-dmi-in: *ncmpCmSubscriptionDmiIn
+ app.ncmp.avc.cm-subscription-dmi-out: *ncmpCmSubscriptionDmiOut
+ app.ncmp.avc.cm-subscription-ncmp-out: *ncmpCmSubscriptionOut
+ app.ncmp.avc.cm-events-topic: *ncmpCmEventsTopic
+ app.lcm.events.topic: *lcmEventsTopic
app.dmi.cm-events.topic: *dmiCmEventsTopic
+ app.dmi.device-heartbeat.topic: *dmiDeviceHeartbeatTopic
+ app.cps.data-updated.topic: *dataUpdatedTopic
logging:
level: INFO
path: /tmp
+management:
+ tracing:
+ propagation:
+ produce: [W3C]
+
+tracing:
+ cps:
+ tracing:
+ sampler:
+ jaeger_remote:
+ endpoint: http://onap-otel-collector:14250
+ exporter:
+ endpoint: http://onap-otel-collector:4317
+ protocol: grpc
+ enabled: false
+ excluded-observation-names: tasks.scheduled.execution
+
#################################################################
# Postgres overriding defaults in the postgres
#################################################################
@@ -283,5 +332,11 @@ hazelcast:
config:
kubernetesDiscovery: true
kubernetesServiceName: cps-core-headless
+ clusterName: cps-and-ncmp-common-cache-cluster
+otel:
+ config:
+ otlp:
+ traces:
+ protocol: grpc