blob: 3d192f4b6a346ff832f8bdd9ebfcfdd24d50190e [file] [log] [blame]
saul.gill7124a4b2021-09-09 12:02:49 +01001# ============LICENSE_START=======================================================
FrancescoFioraEst9c79e262022-02-22 13:12:19 +00002# Copyright (C) 2021-2022 Nordix Foundation.
saul.gill7124a4b2021-09-09 12:02:49 +01003# ================================================================================
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
19spring:
20 security:
21 user:
22 name: ${RUNTIME_USER}
23 password: ${RUNTIME_PASSWORD}
24 http:
25 converters:
26 preferred-json-mapper: gson
liamfallon312ab372021-12-13 14:33:33 +000027 datasource:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000028 url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/clampacm
liamfallon312ab372021-12-13 14:33:33 +000029 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
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000037 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
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010047 kafka:
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010048 consumer:
49 group-id: {{ .Values.config.kafka.consumer.groupId }}
50{{- if .Values.config.useStrimziKafka }}
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010051 bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
52 security.protocol: SASL_PLAINTEXT
53 properties.sasl:
54 mechanism: SCRAM-SHA-512
55 jaas.config: ${JAASLOGIN}
56{{ else }}
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010057{{ toYaml .Values.config.eventConsumption | nindent 2 }}
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010058{{- end }}
saul.gill7124a4b2021-09-09 12:02:49 +010059
60security:
61 enable-csrf: false
62
63server:
64 port: 6969
65 servlet:
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000066 context-path: /onap/policy/clamp/acm
saul.gill7124a4b2021-09-09 12:02:49 +010067 error:
68 path: /error
amatthews736bf372021-12-14 16:04:15 +000069 ssl:
70 enabled: {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
saul.gill7124a4b2021-09-09 12:02:49 +010071
72
73runtime:
saul.gill7124a4b2021-09-09 12:02:49 +010074 participantParameters:
75 heartBeatMs: 120000
76 maxMessageAgeMs: 600000
77 maxStatusWaitMs: 100000
78 updateParameters:
79 maxRetryCount: 3
80 maxWaitMs: 100000
saul.gill7124a4b2021-09-09 12:02:49 +010081 topicParameterGroup:
82 topicSources:
83 -
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000084 topic: POLICY-ACRUNTIME-PARTICIPANT
saul.gill7124a4b2021-09-09 12:02:49 +010085 servers:
86 - ${topicServer:message-router}
87 topicCommInfrastructure: dmaap
amatthews736bf372021-12-14 16:04:15 +000088 useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
saul.gill7124a4b2021-09-09 12:02:49 +010089 fetchTimeout: 15000
90 topicSinks:
91 -
FrancescoFioraEst9c79e262022-02-22 13:12:19 +000092 topic: POLICY-ACRUNTIME-PARTICIPANT
saul.gill7124a4b2021-09-09 12:02:49 +010093 servers:
94 - ${topicServer:message-router}
95 topicCommInfrastructure: dmaap
amatthews736bf372021-12-14 16:04:15 +000096 useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
saul.gill7124a4b2021-09-09 12:02:49 +010097
Sirisha_Manchikantib402a592022-09-09 12:01:20 +010098# If Strimzi Kafka to be used for communication, replace clampAutomationCompositionTopics configuration with below
99# topicParameterGroup:
100# topicSources:
101# -
102# topic: policy-acruntime-participant
103# servers:
104# - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
105# topicCommInfrastructure: kafka
106# useHttps: true
107# fetchTimeout: 15000
108# additionalProps:
109# security.protocol: SASL_PLAINTEXT
110# sasl.mechanism: SCRAM-SHA-512
111# sasl.jaas.config: ${JAASLOGIN}
112# topicSinks:
113# -
114# topic: policy-acruntime-participant
115# servers:
116# - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
117# topicCommInfrastructure: kafka
118# useHttps: true
119# additionalProps:
120# security.protocol: SASL_PLAINTEXT
121# sasl.mechanism: SCRAM-SHA-512
122# sasl.jaas.config: ${JAASLOGIN}
123
saul.gill7124a4b2021-09-09 12:02:49 +0100124management:
125 endpoints:
126 web:
127 exposure:
128 include: health, metrics, prometheus