Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / policy / components / policy-pap / resources / config / papParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2022 Bell Canada. All rights reserved.
3 #  ================================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #
16 #  SPDX-License-Identifier: Apache-2.0
17 #  ============LICENSE_END=========================================================
18
19 spring:
20   security:
21     user:
22       name: "${RESTSERVER_USER}"
23       password: "${RESTSERVER_PASSWORD}"
24   http:
25     converters:
26       preferred-json-mapper: gson
27   datasource:
28     url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort}}/policyadmin
29     driverClassName: org.mariadb.jdbc.Driver
30     username: "${SQL_USER}"
31     password: "${SQL_PASSWORD}"
32     hikari:
33       maximumPoolSize: 20
34   jpa:
35     properties:
36       hibernate:
37         dialect: org.hibernate.dialect.MariaDB103Dialect
38     hibernate:
39       ddl-auto: none
40       naming:
41         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
42         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
43 {{- if .Values.config.useStrimziKafka }}
44   kafka:
45     bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
46     security.protocol: SASL_PLAINTEXT
47     properties.sasl:
48       mechanism: SCRAM-SHA-512
49       jaas.config: ${JAASLOGIN}
50 {{ else }}
51 {{ toYaml .Values.config.eventPublisher | nindent 2 }}
52 {{- end }}
53
54 {{- if .Values.config.additional }}
55 {{ toYaml .Values.config.additional | nindent 2 }}
56 {{- end }}
57
58 server:
59   port: 6969
60   ssl:
61     enabled: true
62
63 pap:
64   name: PapGroup
65   aaf: false
66   pdpParameters:
67     heartBeatMs: 120000
68     updateParameters:
69       maxRetryCount: 1
70       maxWaitMs: 30000
71     stateChangeParameters:
72       maxRetryCount: 1
73       maxWaitMs: 30000
74   savePdpStatisticsInDb: false
75   topicParameterGroup:
76     topicSources:
77     - topic: POLICY-PDP-PAP
78       servers:
79       - message-router
80       useHttps: true
81       fetchTimeout: 15000
82       topicCommInfrastructure: dmaap
83     - topic: POLICY-HEARTBEAT
84       effectiveTopic: POLICY-PDP-PAP
85       consumerGroup: policy-pap
86       servers:
87       - message-router
88       useHttps: true
89       fetchTimeout: 15000
90       topicCommInfrastructure: dmaap
91     topicSinks:
92     - topic: POLICY-PDP-PAP
93       servers:
94       - message-router
95       useHttps: true
96       topicCommInfrastructure: dmaap
97     - topic: POLICY-NOTIFICATION
98       servers:
99       - message-router
100       useHttps: true
101       topicCommInfrastructure: dmaap
102   healthCheckRestClientParameters:
103   - clientName: api
104     hostname: policy-api
105     port: 6969
106     userName: "${API_USER}"
107     password: "${API_PASSWORD}"
108     useHttps: true
109     basePath: policy/api/v1/healthcheck
110   - clientName: distribution
111     hostname: policy-distribution
112     port: 6969
113     userName: "${DISTRIBUTION_USER}"
114     password: "${DISTRIBUTION_PASSWORD}"
115     useHttps: true
116     basePath: healthcheck
117   - clientName: dmaap
118     hostname: message-router
119     port: 3905
120     useHttps: true
121     basePath: topics
122
123 management:
124   endpoints:
125     web:
126       base-path: /
127       exposure:
128         include: health, metrics, prometheus
129       path-mapping.prometheus: metrics