[POLICY] Update config and db-migrator to 2.5.0
[oom.git] / kubernetes / policy / components / policy-api / resources / config / apiParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2022 Bell Canada. All rights reserved.
3 #   Modifications Copyright (C) 2022 AT&T Intellectual Property.
4 #  ================================================================================
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
20 server:
21   port: {{ .Values.service.internalPort }}
22
23 spring:
24   security.user:
25     name: "${RESTSERVER_USER}"
26     password: "${RESTSERVER_PASSWORD}"
27   mvc.converters.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}"
33     hikari:
34       maximumPoolSize: 20
35   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
44
45 policy-api:
46   name: ApiGroup
47   aaf: false
48
49 database:
50   name: PolicyProviderParameterGroup
51   implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl
52   driver: org.mariadb.jdbc.Driver
53   url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort}}/policyadmin
54   user: "${SQL_USER}"
55   password: "${SQL_PASSWORD}"
56   persistenceUnit: PolicyDb
57
58 policy-preload:
59   policyTypes:
60     - policytypes/onap.policies.monitoring.tcagen2.yaml
61     - policytypes/onap.policies.monitoring.tcagen2.v2.yaml
62     - policytypes/onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server.yaml
63     - policytypes/onap.policies.monitoring.dcae-restconfcollector.yaml
64     - policytypes/onap.policies.monitoring.dcae-pm-subscription-handler.yaml
65     - policytypes/onap.policies.monitoring.dcae-pm-mapper.yaml
66     - policytypes/onap.policies.Optimization.yaml
67     - policytypes/onap.policies.optimization.Resource.yaml
68     - policytypes/onap.policies.optimization.Service.yaml
69     - policytypes/onap.policies.optimization.resource.AffinityPolicy.yaml
70     - policytypes/onap.policies.optimization.resource.DistancePolicy.yaml
71     - policytypes/onap.policies.optimization.resource.HpaPolicy.yaml
72     - policytypes/onap.policies.optimization.resource.OptimizationPolicy.yaml
73     - policytypes/onap.policies.optimization.resource.PciPolicy.yaml
74     - policytypes/onap.policies.optimization.service.QueryPolicy.yaml
75     - policytypes/onap.policies.optimization.service.SubscriberPolicy.yaml
76     - policytypes/onap.policies.optimization.resource.Vim_fit.yaml
77     - policytypes/onap.policies.optimization.resource.VnfPolicy.yaml
78     - policytypes/onap.policies.controlloop.guard.Common.yaml
79     - policytypes/onap.policies.controlloop.guard.common.Blacklist.yaml
80     - policytypes/onap.policies.controlloop.guard.common.FrequencyLimiter.yaml
81     - policytypes/onap.policies.controlloop.guard.common.MinMax.yaml
82     - policytypes/onap.policies.controlloop.guard.common.Filter.yaml
83     - policytypes/onap.policies.controlloop.guard.coordination.FirstBlocksSecond.yaml
84     - policytypes/onap.policies.Naming.yaml
85     - policytypes/onap.policies.Match.yaml
86     - policytypes/onap.policies.native.Drools.yaml
87     - policytypes/onap.policies.native.Xacml.yaml
88     - policytypes/onap.policies.native.Apex.yaml
89     - policytypes/onap.policies.controlloop.operational.Common.yaml
90     - policytypes/onap.policies.controlloop.operational.common.Apex.yaml
91     - policytypes/onap.policies.controlloop.operational.common.Drools.yaml
92   policies:
93     - policies/sdnc.policy.naming.input.tosca.yaml
94
95 management:
96   endpoints:
97     web:
98       base-path: /
99       exposure:
100         include: health,metrics,prometheus
101       path-mapping.prometheus: metrics