saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2022 Nordix Foundation. |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 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 |
liamfallon | 312ab37 | 2021-12-13 14:33:33 +0000 | [diff] [blame] | 27 | datasource: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 28 | url: jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/clampacm |
liamfallon | 312ab37 | 2021-12-13 14:33:33 +0000 | [diff] [blame] | 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 |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 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 |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 47 | kafka: |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 48 | consumer: |
| 49 | group-id: {{ .Values.config.kafka.consumer.groupId }} |
| 50 | {{- if .Values.config.useStrimziKafka }} |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 51 | 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_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 57 | {{ toYaml .Values.config.eventConsumption | nindent 2 }} |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 58 | {{- end }} |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 59 | |
| 60 | security: |
| 61 | enable-csrf: false |
| 62 | |
| 63 | server: |
| 64 | port: 6969 |
| 65 | servlet: |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 66 | context-path: /onap/policy/clamp/acm |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 67 | error: |
| 68 | path: /error |
| 69 | |
| 70 | |
| 71 | runtime: |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 72 | participantParameters: |
| 73 | heartBeatMs: 120000 |
| 74 | maxMessageAgeMs: 600000 |
| 75 | maxStatusWaitMs: 100000 |
| 76 | updateParameters: |
| 77 | maxRetryCount: 3 |
| 78 | maxWaitMs: 100000 |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 79 | topicParameterGroup: |
| 80 | topicSources: |
| 81 | - |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 82 | topic: POLICY-ACRUNTIME-PARTICIPANT |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 83 | servers: |
| 84 | - ${topicServer:message-router} |
| 85 | topicCommInfrastructure: dmaap |
| 86 | useHttps: true |
| 87 | fetchTimeout: 15000 |
| 88 | topicSinks: |
| 89 | - |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 90 | topic: POLICY-ACRUNTIME-PARTICIPANT |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 91 | servers: |
| 92 | - ${topicServer:message-router} |
| 93 | topicCommInfrastructure: dmaap |
| 94 | useHttps: true |
| 95 | |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 96 | # If Strimzi Kafka to be used for communication, replace clampAutomationCompositionTopics configuration with below |
| 97 | # topicParameterGroup: |
| 98 | # topicSources: |
| 99 | # - |
| 100 | # topic: policy-acruntime-participant |
| 101 | # servers: |
| 102 | # - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092 |
| 103 | # topicCommInfrastructure: kafka |
| 104 | # useHttps: true |
| 105 | # fetchTimeout: 15000 |
| 106 | # additionalProps: |
| 107 | # security.protocol: SASL_PLAINTEXT |
| 108 | # sasl.mechanism: SCRAM-SHA-512 |
| 109 | # sasl.jaas.config: ${JAASLOGIN} |
| 110 | # topicSinks: |
| 111 | # - |
| 112 | # topic: policy-acruntime-participant |
| 113 | # servers: |
| 114 | # - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092 |
| 115 | # topicCommInfrastructure: kafka |
| 116 | # useHttps: true |
| 117 | # additionalProps: |
| 118 | # security.protocol: SASL_PLAINTEXT |
| 119 | # sasl.mechanism: SCRAM-SHA-512 |
| 120 | # sasl.jaas.config: ${JAASLOGIN} |
| 121 | |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 122 | management: |
| 123 | endpoints: |
| 124 | web: |
| 125 | exposure: |
| 126 | include: health, metrics, prometheus |