Skip to content

Commit

Permalink
Merge "[CPS][COMMON] Sync newly added cps configurations"
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgeisslerdt authored and Gerrit Code Review committed Sep 10, 2024
2 parents 01f83d9 + fca08c9 commit 6de7e5a
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -43,6 +44,12 @@ security:
username: ${CPS_USERNAME}
password: ${CPS_PASSWORD}

# Actuator
management:
tracing:
propagation:
produce: {{ .Values.management.tracing.propagation.produce }}

logging:
level:
org:
Expand Down Expand Up @@ -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.

59 changes: 57 additions & 2 deletions kubernetes/cps/components/cps-core/values.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -183,20 +184,23 @@ 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
notification.async.executor.max-pool-size: 10
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
Expand All @@ -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
#################################################################
Expand Down Expand Up @@ -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

0 comments on commit 6de7e5a

Please sign in to comment.