1 # Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #################################################################
17 #################################################################
20 name: &pgRootPassSecretName '{{ include "common.release" . }}-cps-core-pg-root-pass'
22 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "cps-core-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
23 password: '{{ .Values.postgres.config.pgRootpassword }}'
26 name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-core-pg-user-creds'
28 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "cps-core-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
29 login: '{{ .Values.postgres.config.pgUserName }}'
30 password: '{{ .Values.postgres.config.pgUserPassword }}'
31 passwordPolicy: generate
34 externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
35 login: '{{ .Values.config.appUserName }}'
36 password: '{{ .Values.config.appUserPassword }}'
37 passwordPolicy: generate
38 - uid: dmi-plugin-user-creds
40 externalSecret: '{{ tpl (default "" .Values.config.dmiPluginUserExternalSecret) . }}'
41 login: '{{ .Values.config.dmiPluginUserName }}'
42 password: '{{ .Values.config.dmiPluginUserPassword }}'
43 passwordPolicy: generate
45 #################################################################
46 # Global configuration defaults.
47 #################################################################
49 # bitnami image doesn't support well single quote in password
50 passwordStrengthOverride: basic
54 baseurl: "simpledemo.onap.org"
56 image: onap/cps-and-ncmp:2.0.0
57 containerPort: &svc_port 8080
58 managementPort: &mgt_port 8081
77 ## specify target port if name is not given to the port in the service definition
80 path: /manage/prometheus
86 # flag to enable debugging - application support required
90 # Resource Limit flavor -By Default using small
92 # default number of instances
94 # Segregation for Different environment (Small and Large)
111 # probe configuration parameters
113 initialDelaySeconds: 20
115 # necessary to disable liveness probe when setting breakpoints
116 # in debugger so K8s doesn't restart unresponsive container
122 initialDelaySeconds: 15
130 - baseaddr: "cps-core"
136 nameOverride: cps-core
144 #################################################################
145 # Application configuration defaults.
146 #################################################################
150 # Set it for pre loading xnfdata, else set to null
151 liquibaseLabels: xnf-data-preload
153 # REST API basic authentication credentials (passsword is generated if not provided)
158 dmiPluginUserName: dmiuser
159 # Any new property can be added in the env by setting in overrides in the format mentioned below
160 # All the added properties must be in "key: value" format insead of yaml.
162 # spring.config.max-size: 200
163 # spring.config.min-size: 10
166 spring.kafka.bootstrap-servers: message-router-kafka:9092
167 spring.kafka.security.protocol: SASL_PLAINTEXT
168 spring.kafka.properties.sasl.mechanism: PLAIN
169 spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username=admin password=admin_secret;
170 spring.kafka.producer.client-id: cps-core
173 notification.data-updated.enabled: true
174 notification.data-updated.topic: cps.data-updated-events
175 notification.data-updated.filters.enabled-dataspaces: ""
176 notification.async.enabled: false
177 notification.async.executor.core-pool-size: 2
178 notification.async.executor.max-pool-size: 1
179 notification.async.executor.queue-capacity: 500
180 notification.async.executor.wait-for-tasks-to-complete-on-shutdown: true
181 notification.async.executor.thread-name-prefix: Async-
187 #################################################################
188 # Postgres overriding defaults in the postgres
189 #################################################################
191 nameOverride: &postgresName cps-core-postgres
194 name2: cps-core-pg-primary
195 name3: cps-core-pg-replica
198 primary: cps-core-pg-primary
199 replica: cps-core-pg-replica
201 mountSubPath: cps-core/data
202 mountInitPath: cps-core
206 pgUserExternalSecret: *pgUserCredsSecretName
207 pgRootPasswordExternalSecret: *pgRootPassSecretName