1 # Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
2 # Modifications Copyright (C) 2022 Bell Canada
3 # Modifications Copyright © 2022-2023 Nordix Foundation
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 #################################################################
19 #################################################################
22 name: &pgRootPassSecretName '{{ include "common.release" . }}-cps-core-pg-root-pass'
24 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "cps-core-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
25 password: '{{ .Values.postgres.config.pgRootpassword }}'
28 name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-core-pg-user-creds'
30 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "cps-core-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
31 login: '{{ .Values.postgres.config.pgUserName }}'
32 password: '{{ .Values.postgres.config.pgUserPassword }}'
33 passwordPolicy: generate
36 externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
37 login: '{{ .Values.config.appUserName }}'
38 password: '{{ .Values.config.appUserPassword }}'
39 passwordPolicy: generate
40 - uid: dmi-plugin-user-creds
42 externalSecret: '{{ tpl (default "" .Values.config.dmiPluginUserExternalSecret) . }}'
43 login: '{{ .Values.config.dmiPluginUserName }}'
44 password: '{{ .Values.config.dmiPluginUserPassword }}'
45 passwordPolicy: generate
47 #################################################################
48 # Global configuration defaults.
49 #################################################################
51 # bitnami image doesn't support well single quote in password
52 passwordStrengthOverride: basic
56 baseurl: "simpledemo.onap.org"
57 #Service Names of the postgres db to connect to.
58 #Override it to cps-postgres if localCluster is enabled.
64 name2: tcp-pgset-primary
66 name3: tcp-pgset-replica
71 image: onap/cps-and-ncmp:3.2.6
72 containerPort: &svc_port 8080
73 managementPort: &mgt_port 8081
81 - name: http-management
91 ## specify target port if name is not given to the port in the service definition
94 path: /manage/prometheus
100 # flag to enable debugging - application support required
104 # Resource Limit flavor -By Default using small
106 # default number of instances
108 # Segregation for Different environment (Small and Large)
125 # probe configuration parameters
127 initialDelaySeconds: 20
129 # necessary to disable liveness probe when setting breakpoints
130 # in debugger so K8s doesn't restart unresponsive container
136 initialDelaySeconds: 15
150 - baseaddr: "cps-core-api"
156 nameOverride: cps-core
164 #################################################################
165 # Application configuration defaults.
166 #################################################################
169 # Set it for preloading xnfdata, else set to null
170 liquibaseLabels: xnf-data-preload
172 # REST API basic authentication credentials (passsword is generated if not provided)
177 dmiPluginUserName: dmiuser
178 # Any new property can be added in the env by setting in overrides in the format mentioned below
179 # All the added properties must be in "key: value" format instead of yaml.
181 # spring.config.max-size: 200
182 # spring.config.min-size: 10
185 notification.enabled: true
186 notification.data-updated.topic: &dataUpdatedTopic cps.data-updated-events
187 notification.data-updated.filters.enabled-dataspaces: ""
188 notification.async.enabled: false
189 notification.async.executor.core-pool-size: 2
190 notification.async.executor.max-pool-size: 10
191 notification.async.executor.queue-capacity: 500
192 notification.async.executor.wait-for-tasks-to-complete-on-shutdown: true
193 notification.async.executor.thread-name-prefix: Async-
195 # Strimzi KafkaUser and Topic config
197 - name: &dmiCmEventsTopic dmi-cm-events
199 segmentBytes: 1073741824
202 authenticationType: scram-sha-512
204 - name: cps-core-group
207 - name: *dataUpdatedTopic
210 - name: *dmiCmEventsTopic
213 - name: &ncmpAsyncM2MTopic ncmp-async-m2m
216 - name: &cmAvcSubscriptionTopic cm-avc-subscription
222 app.ncmp.async-m2m.topic: *ncmpAsyncM2MTopic
223 app.ncmp.avc.subscription-topic: *cmAvcSubscriptionTopic
224 app.dmi.cm-events.topic: *dmiCmEventsTopic
230 #################################################################
231 # Postgres overriding defaults in the postgres
232 #################################################################
235 nameOverride: &postgresName cps-core-postgres
239 name2: cps-core-pg-primary
241 name3: cps-core-pg-replica
245 primary: cps-core-pg-primary
246 replica: cps-core-pg-replica
248 mountSubPath: cps-core/data
249 mountInitPath: cps-core
253 pgUserExternalSecret: *pgUserCredsSecretName
254 pgRootPasswordExternalSecret: *pgRootPassSecretName
257 nameOverride: cps-postgres-init
262 pgUserExternalSecret: *pgUserCredsSecretName
264 nameOverride: cps-postgres-init
266 # pgPrimaryPassword: password
267 # pgUserPassword: password
268 # pgRootPassword: password
272 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'