blob: 5496d931749c1ec686f348da0309716ed2d9d030 [file] [log] [blame]
a.sreekumar2f377362022-02-09 12:40:57 +00001# ============LICENSE_START=======================================================
2# Copyright (C) 2022 Bell Canada. All rights reserved.
Sirisha_Manchikantib402a592022-09-09 12:01:20 +01003# Modifications Copyright © 2022 Nordix Foundation
a.sreekumar2f377362022-02-09 12:40:57 +00004# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20spring:
21 security:
22 user:
23 name: "${RESTSERVER_USER}"
24 password: "${RESTSERVER_PASSWORD}"
25 http:
26 converters:
27 preferred-json-mapper: gson
28 datasource:
saul.gillef208b02023-04-26 16:16:05 +010029{{ if not .Values.global.postgres.localCluster }}
30 url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/policyadmin
a.sreekumar2f377362022-02-09 12:40:57 +000031 driverClassName: org.mariadb.jdbc.Driver
32 username: "${SQL_USER}"
33 password: "${SQL_PASSWORD}"
Prakhar Pandeya8a47e02022-04-14 12:15:00 -040034 hikari:
35 maximumPoolSize: 20
a.sreekumar2f377362022-02-09 12:40:57 +000036 jpa:
37 properties:
38 hibernate:
39 dialect: org.hibernate.dialect.MariaDB103Dialect
40 hibernate:
41 ddl-auto: none
42 naming:
43 physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
44 implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
saul.gillef208b02023-04-26 16:16:05 +010045{{- else }}
46 url: jdbc:postgresql://{{ .Values.db.service.pgName }}:{{ .Values.db.service.internalPgPort }}/policyadmin
47 driverClassName: org.postgresql.Driver
48 username: "${SQL_USER}"
49 password: "${SQL_PASSWORD}"
50 hikari:
51 connectionTimeout: 30000
52 idleTimeout: 600000
53 maxLifetime: 1800000
54 maximumPoolSize: 10
55 jpa:
56 hibernate:
57 ddl-auto: none
58 naming:
59 physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
60 implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
61 properties:
62 hibernate:
63 dialect: org.hibernate.dialect.PostgreSQLDialect
64 format_sql: true
65{{ end }}
a.sreekumar2f377362022-02-09 12:40:57 +000066
67server:
68 port: 6969
69 ssl:
Andreas Geisslerf10c5552023-03-21 18:09:46 +010070 enabled: false
saul.gill5e611402023-03-02 11:49:23 +000071 servlet:
72 context-path: /policy/pap/v1
a.sreekumar2f377362022-02-09 12:40:57 +000073
74pap:
75 name: PapGroup
76 aaf: false
saul.gill5e611402023-03-02 11:49:23 +000077 topic:
saul.gillef208b02023-04-26 16:16:05 +010078 {{ if .Values.global.useStrimziKafkaPf }}
79 pdp-pap.name: {{ .Values.config.kafka.topics.policyPdpPap }}
80 notification.name: {{ .Values.config.kafka.topics.policyNotification }}
81 heartbeat.name: {{ .Values.config.kafka.topics.policyHeartbeat }}
82 {{ else }}
83 pdp-pap.name: {{ .Values.dmaap.topics.policyPdpPap }}
84 notification.name: {{ .Values.dmaap.topics.policyNotification }}
85 heartbeat.name: {{ .Values.dmaap.topics.policyHeartbeat }}
86 {{ end }}
a.sreekumar2f377362022-02-09 12:40:57 +000087 pdpParameters:
88 heartBeatMs: 120000
89 updateParameters:
90 maxRetryCount: 1
91 maxWaitMs: 30000
92 stateChangeParameters:
93 maxRetryCount: 1
94 maxWaitMs: 30000
saul.gillef208b02023-04-26 16:16:05 +010095 savePdpStatisticsInDb: true
a.sreekumar2f377362022-02-09 12:40:57 +000096 topicParameterGroup:
97 topicSources:
saul.gillef208b02023-04-26 16:16:05 +010098 - useHttps: false
99 fetchTimeout: 15000
100 {{ if .Values.global.useStrimziKafkaPf }}
101 topic: {{ .Values.config.kafka.topics.policyPdpPap }}
102 servers:
103 - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
104 topicCommInfrastructure: kafka
105 additionalProps:
106 group.id : {{ .Values.config.kafka.consumer.groupId }}
107 security.protocol: SASL_PLAINTEXT
108 sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
109 sasl.jaas.config: ${JAASLOGIN}
110 {{ else }}
111 topic: {{ .Values.dmaap.topics.policyPdpPap }}
112 servers:
113 - ${topicServer:message-router}
114 topicCommInfrastructure: dmaap
115 {{ end }}
116 - useHttps: false
117 fetchTimeout: 15000
118 {{ if .Values.global.useStrimziKafkaPf }}
119 topic: {{ .Values.config.kafka.topics.policyHeartbeat }}
120 effectiveTopic: {{ .Values.config.kafka.topics.policyPdpPap }}
121 servers:
122 - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
123 topicCommInfrastructure: kafka
124 additionalProps:
125 group.id : {{ .Values.config.kafka.consumer.groupId }}
126 security.protocol: SASL_PLAINTEXT
127 sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
128 sasl.jaas.config: ${JAASLOGIN}
129 {{ else }}
130 topic: {{ .Values.dmaap.topics.policyHeartbeat }}
131 effectiveTopic: {{ .Values.dmaap.topics.policyPdpPap }}
132 servers:
133 - ${topicServer:message-router}
134 topicCommInfrastructure: dmaap
135 {{ end }}
a.sreekumar2f377362022-02-09 12:40:57 +0000136 topicSinks:
saul.gillef208b02023-04-26 16:16:05 +0100137 - useHttps: false
138 {{ if .Values.global.useStrimziKafkaPf }}
139 topic: {{ .Values.config.kafka.topics.policyPdpPap }}
140 servers:
141 - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
142 topicCommInfrastructure: kafka
143 additionalProps:
144 group.id : {{ .Values.config.kafka.consumer.groupId }}
145 security.protocol: SASL_PLAINTEXT
146 sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
147 sasl.jaas.config: ${JAASLOGIN}
148 {{ else }}
149 topic: {{ .Values.dmaap.topics.policyPdpPap }}
150 servers:
151 - ${topicServer:message-router}
152 topicCommInfrastructure: dmaap
153 {{ end }}
154 - useHttps: false
155 {{ if .Values.global.useStrimziKafkaPf }}
156 topic: {{ .Values.config.kafka.topics.policyNotification }}
157 servers:
158 - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
159 topicCommInfrastructure: kafka
160 additionalProps:
161 group.id : {{ .Values.config.kafka.consumer.groupId }}
162 security.protocol: SASL_PLAINTEXT
163 sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
164 sasl.jaas.config: ${JAASLOGIN}
165 {{ else }}
166 topic: {{ .Values.dmaap.topics.policyNotification }}
167 servers:
168 - ${topicServer:message-router}
169 topicCommInfrastructure: dmaap
170 {{ end }}
Sirisha_Manchikantib402a592022-09-09 12:01:20 +0100171# If Strimzi Kafka to be used for communication, replace following configuration for topicSources and topicSinks
172# servers:
173# - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
174# topicCommInfrastructure: kafka
175# additionalProps:
176# security.protocol: SASL_PLAINTEXT
177# sasl.mechanism: SCRAM-SHA-512
178# sasl.jaas.config: ${JAASLOGIN}
179
a.sreekumar2f377362022-02-09 12:40:57 +0000180 healthCheckRestClientParameters:
181 - clientName: api
182 hostname: policy-api
183 port: 6969
184 userName: "${API_USER}"
185 password: "${API_PASSWORD}"
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100186 useHttps: false
a.sreekumar2f377362022-02-09 12:40:57 +0000187 basePath: policy/api/v1/healthcheck
188 - clientName: distribution
189 hostname: policy-distribution
190 port: 6969
191 userName: "${DISTRIBUTION_USER}"
192 password: "${DISTRIBUTION_PASSWORD}"
Andreas Geisslerf10c5552023-03-21 18:09:46 +0100193 useHttps: false
a.sreekumar2f377362022-02-09 12:40:57 +0000194 basePath: healthcheck
a.sreekumar2f377362022-02-09 12:40:57 +0000195
196management:
197 endpoints:
198 web:
199 base-path: /
200 exposure:
201 include: health, metrics, prometheus
202 path-mapping.prometheus: metrics