Merge "[AAI] Add model-loader tracing config"
[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 #   Modification (C) 2023 Deutsche Telekom. All rights reserved.
5 #  ================================================================================
6 #  Licensed under the Apache License, Version 2.0 (the "License");
7 #  you may not use this file except in compliance with the License.
8 #  You may obtain a copy of the License at
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #  Unless required by applicable law or agreed to in writing, software
13 #  distributed under the License is distributed on an "AS IS" BASIS,
14 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #  See the License for the specific language governing permissions and
16 #  limitations under the License.
17 #
18 #  SPDX-License-Identifier: Apache-2.0
19 #  ============LICENSE_END=========================================================
20
21 server:
22   port: {{ .Values.service.internalPort }}
23   ssl:
24     enabled: false
25   servlet:
26     context-path: /policy/api/v1
27
28 spring:
29   security.user:
30     name: "${RESTSERVER_USER}"
31     password: "${RESTSERVER_PASSWORD}"
32   mvc.converters.preferred-json-mapper: gson
33   datasource:
34 {{ if not .Values.global.postgres.localCluster }}
35     url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/policyadmin
36     driverClassName: org.mariadb.jdbc.Driver
37     username: "${SQL_USER}"
38     password: "${SQL_PASSWORD}"
39     hikari:
40       maximumPoolSize: 20
41   jpa:
42     properties:
43       hibernate:
44         dialect: org.hibernate.dialect.MariaDB103Dialect
45     hibernate:
46       ddl-auto: none
47       naming:
48         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
49         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
50 {{ else }}
51     url: jdbc:postgresql://{{ .Values.db.service.pgName }}:{{ .Values.db.service.internalPgPort}}/policyadmin
52     driverClassName: org.postgresql.Driver
53     username: "${SQL_USER}"
54     password: "${SQL_PASSWORD}"
55     hikari:
56       connectionTimeout: 30000
57       idleTimeout: 600000
58       maxLifetime: 1800000
59       maximumPoolSize: 10
60   jpa:
61     hibernate:
62       ddl-auto: none
63       naming:
64         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
65         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
66     properties:
67       hibernate:
68         dialect: org.hibernate.dialect.PostgreSQLDialect
69         format_sql: true
70 {{ end }}
71
72 policy-api:
73   name: ApiGroup
74   aaf: false
75
76 database:
77   name: PolicyProviderParameterGroup
78   implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl
79   driver: org.mariadb.jdbc.Driver
80   url: jdbc:mariadb://{{ .Values.db.service.name }}/policyadmin
81   user: "${SQL_USER}"
82   password: "${SQL_PASSWORD}"
83   persistenceUnit: PolicyDb
84
85 policy-preload:
86   policyTypes:
87     - policytypes/onap.policies.monitoring.tcagen2.yaml
88     - policytypes/onap.policies.monitoring.tcagen2.v2.yaml
89     - policytypes/onap.policies.monitoring.dcaegen2.collectors.datafile.datafile-app-server.yaml
90     - policytypes/onap.policies.monitoring.dcae-restconfcollector.yaml
91     - policytypes/onap.policies.monitoring.dcae-pm-subscription-handler.yaml
92     - policytypes/onap.policies.monitoring.dcae-pm-mapper.yaml
93     - policytypes/onap.policies.Optimization.yaml
94     - policytypes/onap.policies.optimization.Resource.yaml
95     - policytypes/onap.policies.optimization.Service.yaml
96     - policytypes/onap.policies.optimization.resource.AffinityPolicy.yaml
97     - policytypes/onap.policies.optimization.resource.DistancePolicy.yaml
98     - policytypes/onap.policies.optimization.resource.HpaPolicy.yaml
99     - policytypes/onap.policies.optimization.resource.OptimizationPolicy.yaml
100     - policytypes/onap.policies.optimization.resource.PciPolicy.yaml
101     - policytypes/onap.policies.optimization.service.QueryPolicy.yaml
102     - policytypes/onap.policies.optimization.service.SubscriberPolicy.yaml
103     - policytypes/onap.policies.optimization.resource.Vim_fit.yaml
104     - policytypes/onap.policies.optimization.resource.VnfPolicy.yaml
105     - policytypes/onap.policies.controlloop.guard.Common.yaml
106     - policytypes/onap.policies.controlloop.guard.common.Blacklist.yaml
107     - policytypes/onap.policies.controlloop.guard.common.FrequencyLimiter.yaml
108     - policytypes/onap.policies.controlloop.guard.common.MinMax.yaml
109     - policytypes/onap.policies.controlloop.guard.common.Filter.yaml
110     - policytypes/onap.policies.controlloop.guard.coordination.FirstBlocksSecond.yaml
111     - policytypes/onap.policies.Naming.yaml
112     - policytypes/onap.policies.Match.yaml
113     - policytypes/onap.policies.native.Drools.yaml
114     - policytypes/onap.policies.native.Xacml.yaml
115     - policytypes/onap.policies.native.Apex.yaml
116     - policytypes/onap.policies.controlloop.operational.Common.yaml
117     - policytypes/onap.policies.controlloop.operational.common.Apex.yaml
118     - policytypes/onap.policies.controlloop.operational.common.Drools.yaml
119   policies:
120     - policies/sdnc.policy.naming.input.tosca.yaml
121
122 management:
123   endpoints:
124     web:
125       base-path: /
126       exposure:
127         include: health,metrics,prometheus
128       path-mapping.prometheus: metrics