Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / policy / components / policy-clamp-runtime-acm / resources / config / acRuntimeParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2022 Nordix Foundation.
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: ${RUNTIME_USER}
23       password: ${RUNTIME_PASSWORD}
24   http:
25     converters:
26       preferred-json-mapper: gson
27   datasource:
28     url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/clampacm
29     driverClassName: org.mariadb.jdbc.Driver
30     username: ${SQL_USER}
31     password: ${SQL_PASSWORD}
32     hikari:
33       connectionTimeout: 30000
34       idleTimeout: 600000
35       maxLifetime: 1800000
36       maximumPoolSize: 10
37   jpa:
38     hibernate:
39       ddl-auto: update
40       naming:
41         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
42         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
43     properties:
44       hibernate:
45         dialect: org.hibernate.dialect.MariaDB103Dialect
46         format_sql: true
47 {{- if .Values.config.useStrimziKafka }}
48   kafka:
49     bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
50     security.protocol: SASL_PLAINTEXT
51     properties.sasl:
52       mechanism: SCRAM-SHA-512
53       jaas.config: ${JAASLOGIN}
54 {{ else }}
55 {{ toYaml .Values.config.eventPublisher | nindent 2 }}
56 {{- end }}
57
58 {{- if .Values.config.additional }}
59 {{ toYaml .Values.config.additional | nindent 2 }}
60 {{- end }}
61
62 security:
63   enable-csrf: false
64
65 server:
66   port: 6969
67   servlet:
68     context-path: /onap/policy/clamp/acm
69   error:
70     path: /error
71
72
73 runtime:
74   participantParameters:
75     heartBeatMs: 120000
76     maxMessageAgeMs: 600000
77     maxStatusWaitMs: 100000
78     updateParameters:
79       maxRetryCount: 3
80       maxWaitMs: 100000
81   topicParameterGroup:
82     topicSources:
83       -
84         topic: POLICY-ACRUNTIME-PARTICIPANT
85         servers:
86           - ${topicServer:message-router}
87         topicCommInfrastructure: dmaap
88         useHttps: true
89         fetchTimeout: 15000
90     topicSinks:
91       -
92         topic: POLICY-ACRUNTIME-PARTICIPANT
93         servers:
94           - ${topicServer:message-router}
95         topicCommInfrastructure: dmaap
96         useHttps: true
97
98 management:
99   endpoints:
100     web:
101       exposure:
102         include: health, metrics, prometheus