a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2022 Bell Canada. All rights reserved. |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 3 | # Modifications Copyright © 2022 Nordix Foundation |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 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 | spring: |
| 21 | security: |
| 22 | user: |
| 23 | name: "${RESTSERVER_USER}" |
| 24 | password: "${RESTSERVER_PASSWORD}" |
| 25 | http: |
| 26 | converters: |
| 27 | 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}" |
Prakhar Pandey | a8a47e0 | 2022-04-14 12:15:00 -0400 | [diff] [blame] | 33 | hikari: |
| 34 | maximumPoolSize: 20 |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 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 |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 44 | kafka: |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 45 | consumer: |
| 46 | group-id: {{ .Values.config.kafka.consumer.groupId }} |
| 47 | {{- if .Values.config.useStrimziKafka }} |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 48 | bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092 |
| 49 | security.protocol: SASL_PLAINTEXT |
| 50 | properties.sasl: |
| 51 | mechanism: SCRAM-SHA-512 |
| 52 | jaas.config: ${JAASLOGIN} |
| 53 | {{ else }} |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 54 | {{ toYaml .Values.config.eventConsumption | nindent 2 }} |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 55 | {{- end }} |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 56 | |
| 57 | server: |
| 58 | port: 6969 |
| 59 | ssl: |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame^] | 60 | enabled: false |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 61 | servlet: |
| 62 | context-path: /policy/pap/v1 |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 63 | |
| 64 | pap: |
| 65 | name: PapGroup |
| 66 | aaf: false |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 67 | topic: |
| 68 | pdp-pap.name: POLICY-PDP-PAP |
| 69 | notification.name: POLICY-NOTIFICATION |
| 70 | heartbeat.name: POLICY-HEARTBEAT |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 71 | pdpParameters: |
| 72 | heartBeatMs: 120000 |
| 73 | updateParameters: |
| 74 | maxRetryCount: 1 |
| 75 | maxWaitMs: 30000 |
| 76 | stateChangeParameters: |
| 77 | maxRetryCount: 1 |
| 78 | maxWaitMs: 30000 |
| 79 | savePdpStatisticsInDb: false |
| 80 | topicParameterGroup: |
| 81 | topicSources: |
| 82 | - topic: POLICY-PDP-PAP |
| 83 | servers: |
| 84 | - message-router |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 85 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 86 | fetchTimeout: 15000 |
| 87 | topicCommInfrastructure: dmaap |
| 88 | - topic: POLICY-HEARTBEAT |
| 89 | effectiveTopic: POLICY-PDP-PAP |
| 90 | consumerGroup: policy-pap |
| 91 | servers: |
| 92 | - message-router |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 93 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 94 | fetchTimeout: 15000 |
| 95 | topicCommInfrastructure: dmaap |
| 96 | topicSinks: |
| 97 | - topic: POLICY-PDP-PAP |
| 98 | servers: |
| 99 | - message-router |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 100 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 101 | topicCommInfrastructure: dmaap |
| 102 | - topic: POLICY-NOTIFICATION |
| 103 | servers: |
| 104 | - message-router |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 105 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 106 | topicCommInfrastructure: dmaap |
Sirisha_Manchikanti | b402a59 | 2022-09-09 12:01:20 +0100 | [diff] [blame] | 107 | # If Strimzi Kafka to be used for communication, replace following configuration for topicSources and topicSinks |
| 108 | # servers: |
| 109 | # - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092 |
| 110 | # topicCommInfrastructure: kafka |
| 111 | # additionalProps: |
| 112 | # security.protocol: SASL_PLAINTEXT |
| 113 | # sasl.mechanism: SCRAM-SHA-512 |
| 114 | # sasl.jaas.config: ${JAASLOGIN} |
| 115 | |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 116 | healthCheckRestClientParameters: |
| 117 | - clientName: api |
| 118 | hostname: policy-api |
| 119 | port: 6969 |
| 120 | userName: "${API_USER}" |
| 121 | password: "${API_PASSWORD}" |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame^] | 122 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 123 | basePath: policy/api/v1/healthcheck |
| 124 | - clientName: distribution |
| 125 | hostname: policy-distribution |
| 126 | port: 6969 |
| 127 | userName: "${DISTRIBUTION_USER}" |
| 128 | password: "${DISTRIBUTION_PASSWORD}" |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame^] | 129 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 130 | basePath: healthcheck |
| 131 | - clientName: dmaap |
| 132 | hostname: message-router |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 133 | port: 3904 |
| 134 | useHttps: false |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 135 | basePath: topics |
| 136 | |
| 137 | management: |
| 138 | endpoints: |
| 139 | web: |
| 140 | base-path: / |
| 141 | exposure: |
| 142 | include: health, metrics, prometheus |
| 143 | path-mapping.prometheus: metrics |