Add ACM db upgrade/downgrade to db-migrator
[policy/docker.git] / helm / policy / components / policy-clamp-runtime-acm / resources / config / acRuntimeParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2022,2024 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   mvc:
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: none
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
48 security:
49   enable-csrf: false
50
51 metrics:
52   security:
53     disabled: false
54
55 server:
56   port: 6969
57   servlet:
58     context-path: /onap/policy/clamp/acm
59   error:
60     path: /error
61   ssl:
62     enabled: false
63
64 runtime:
65   participantParameters:
66     heartBeatMs: 120000
67     maxStatusWaitMs: 200000
68   topicParameterGroup:
69     topicSources:
70       -
71         topic: policy-acruntime-participant
72         servers:
73           - {{ .Values.global.kafkaServer }}:9092
74         topicCommInfrastructure: kafka
75         useHttps: false
76         fetchTimeout: 15000
77     topicSinks:
78       -
79         topic: policy-acruntime-participant
80         servers:
81           - {{ .Values.global.kafkaServer }}:9092
82         topicCommInfrastructure: kafka
83         useHttps: false
84   acmParameters:
85     toscaElementName: {{ .Values.customNaming.toscaElementName }}
86     toscaCompositionName: {{ .Values.customNaming.toscaCompositionName }}
87
88
89
90 management:
91   endpoints:
92     web:
93       base-path: /
94       exposure:
95         include: health, metrics, prometheus