blob: 7cb32d007914a200de43e24f315f35696673a16c [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:
29 url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort}}/policyadmin
30 driverClassName: org.mariadb.jdbc.Driver
31 username: "${SQL_USER}"
32 password: "${SQL_PASSWORD}"
Prakhar Pandeya8a47e02022-04-14 12:15:00 -040033 hikari:
34 maximumPoolSize: 20
a.sreekumar2f377362022-02-09 12:40:57 +000035 jpa:
36 properties:
37 hibernate:
38 dialect: org.hibernate.dialect.MariaDB103Dialect
39 hibernate:
40 ddl-auto: none
41 naming:
42 physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
43 implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010044 kafka:
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010045 consumer:
46 group-id: {{ .Values.config.kafka.consumer.groupId }}
47{{- if .Values.config.useStrimziKafka }}
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010048 bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
49 security.protocol: SASL_PLAINTEXT
50 properties.sasl:
51 mechanism: SCRAM-SHA-512
52 jaas.config: ${JAASLOGIN}
53{{ else }}
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010054{{ toYaml .Values.config.eventConsumption | nindent 2 }}
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010055{{- end }}
a.sreekumar2f377362022-02-09 12:40:57 +000056
57server:
58 port: 6969
59 ssl:
60 enabled: true
61
62pap:
63 name: PapGroup
64 aaf: false
65 pdpParameters:
66 heartBeatMs: 120000
67 updateParameters:
68 maxRetryCount: 1
69 maxWaitMs: 30000
70 stateChangeParameters:
71 maxRetryCount: 1
72 maxWaitMs: 30000
73 savePdpStatisticsInDb: false
74 topicParameterGroup:
75 topicSources:
76 - topic: POLICY-PDP-PAP
77 servers:
78 - message-router
79 useHttps: true
80 fetchTimeout: 15000
81 topicCommInfrastructure: dmaap
82 - topic: POLICY-HEARTBEAT
83 effectiveTopic: POLICY-PDP-PAP
84 consumerGroup: policy-pap
85 servers:
86 - message-router
87 useHttps: true
88 fetchTimeout: 15000
89 topicCommInfrastructure: dmaap
90 topicSinks:
91 - topic: POLICY-PDP-PAP
92 servers:
93 - message-router
94 useHttps: true
95 topicCommInfrastructure: dmaap
96 - topic: POLICY-NOTIFICATION
97 servers:
98 - message-router
99 useHttps: true
100 topicCommInfrastructure: dmaap
Sirisha_Manchikantib402a592022-09-09 12:01:20 +0100101# If Strimzi Kafka to be used for communication, replace following configuration for topicSources and topicSinks
102# servers:
103# - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
104# topicCommInfrastructure: kafka
105# additionalProps:
106# security.protocol: SASL_PLAINTEXT
107# sasl.mechanism: SCRAM-SHA-512
108# sasl.jaas.config: ${JAASLOGIN}
109
a.sreekumar2f377362022-02-09 12:40:57 +0000110 healthCheckRestClientParameters:
111 - clientName: api
112 hostname: policy-api
113 port: 6969
114 userName: "${API_USER}"
115 password: "${API_PASSWORD}"
116 useHttps: true
117 basePath: policy/api/v1/healthcheck
118 - clientName: distribution
119 hostname: policy-distribution
120 port: 6969
121 userName: "${DISTRIBUTION_USER}"
122 password: "${DISTRIBUTION_PASSWORD}"
123 useHttps: true
124 basePath: healthcheck
125 - clientName: dmaap
126 hostname: message-router
127 port: 3905
128 useHttps: true
129 basePath: topics
130
131management:
132 endpoints:
133 web:
134 base-path: /
135 exposure:
136 include: health, metrics, prometheus
137 path-mapping.prometheus: metrics