1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
22 # '&mariadbConfig' means we "store" the values for later use in the file
23 # with '*mariadbConfig' pointer.
24 config: &mariadbConfig
25 mysqlDatabase: policyadmin
26 service: &mariadbService
27 name: &policy-mariadb policy-mariadb
30 #################################################################
32 #################################################################
34 - uid: db-root-password
35 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
37 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
38 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
41 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
43 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
44 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
45 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
46 passwordPolicy: generate
49 credsExternalSecret: *dbSecretName
77 #################################################################
78 # DB configuration defaults.
79 #################################################################
81 repository: nexus3.onap.org:10001
90 # flag to enable debugging - application support required
93 # default number of instances
100 # probe configuration parameters
102 initialDelaySeconds: 10
104 # necessary to disable liveness probe when setting breakpoints
105 # in debugger so K8s doesn't restart unresponsive container
109 initialDelaySeconds: 10
113 # mariadb-galera.config and global.mariadb.config must be equals
117 externalSecret: *dbSecretName
118 name: &mysqlDbName policyadmin
120 externalSecret: *dbRootPassSecretName
121 nameOverride: *policy-mariadb
122 # mariadb-galera.service and global.mariadb.service must be equals
123 service: *mariadbService
127 mountSubPath: policy/maria/data
129 nameOverride: *policy-mariadb
131 # Resource Limit flavor -By Default using small
132 # Segregation for Different environment (small, large, or unlimited)