1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
3 # Modifications Copyright (C) 2021-2022 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 #################################################################
18 # Global configuration defaults.
19 #################################################################
23 # '&mariadbConfig' means we "store" the values for later use in the file
24 # with '*mariadbConfig' pointer.
25 config: &mariadbConfig
26 mysqlDatabase: policyadmin
27 service: &mariadbService
28 name: &policy-mariadb policy-mariadb
30 prometheusEnabled: false
35 name2: tcp-pgset-primary
36 name3: tcp-pgset-replica
40 #################################################################
42 #################################################################
44 - uid: db-root-password
45 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
47 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
48 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
51 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
53 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
54 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
55 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
56 passwordPolicy: generate
57 - uid: policy-app-user-creds
58 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
60 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
61 login: '{{ .Values.config.policyAppUserName }}'
62 password: '{{ .Values.config.policyAppUserPassword }}'
63 passwordPolicy: generate
64 - uid: policy-pap-user-creds
65 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
67 externalSecret: '{{ tpl (default "" .Values.restServer.policyPapUserExternalSecret) . }}'
68 login: '{{ .Values.restServer.policyPapUserName }}'
69 password: '{{ .Values.restServer.policyPapUserPassword }}'
70 passwordPolicy: required
71 - uid: policy-api-user-creds
72 name: &policyApiCredsSecret '{{ include "common.release" . }}-policy-api-user-creds'
74 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
75 login: '{{ .Values.restServer.policyApiUserName }}'
76 password: '{{ .Values.restServer.policyApiUserPassword }}'
77 passwordPolicy: required
79 name: &pgRootPassSecretName '{{ include "common.release" . }}-policy-pg-root-pass'
81 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "policy-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
82 password: '{{ .Values.postgres.config.pgRootpassword }}'
85 name: &pgUserCredsSecretName '{{ include "common.release" . }}-policy-pg-user-creds'
87 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "policy-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
88 login: '{{ .Values.postgres.config.pgUserName }}'
89 password: '{{ .Values.postgres.config.pgUserPassword }}'
90 passwordPolicy: generate
93 credsExternalSecret: *dbSecretName
99 apiUserExternalSecret: *policyApiCredsSecret
104 papUserExternalSecret: *policyPapCredsSecret
105 apiUserExternalSecret: *policyApiCredsSecret
122 appUserExternalSecret: *policyAppCredsSecret
123 policy-clamp-ac-k8s-ppnt:
125 policy-clamp-ac-pf-ppnt:
128 apiUserExternalSecret: *policyApiCredsSecret
129 papUserExternalSecret: *policyPapCredsSecret
130 policy-clamp-ac-http-ppnt:
134 policy-clamp-runtime-acm:
138 appUserExternalSecret: *policyAppCredsSecret
142 #################################################################
143 # DB configuration defaults.
144 #################################################################
146 repository: nexus3.onap.org:10001
150 image: mariadb:10.5.8
153 image: onap/policy-db-migrator:2.4.3
155 policy_home: "/opt/app/policy"
160 # flag to enable debugging - application support required
163 # default number of instances
170 # probe configuration parameters
172 initialDelaySeconds: 10
174 # necessary to disable liveness probe when setting breakpoints
175 # in debugger so K8s doesn't restart unresponsive container
179 initialDelaySeconds: 10
184 policyAppUserName: runtimeUser
187 # mariadb-galera.config and global.mariadb.config must be equals
191 externalSecret: *dbSecretName
192 name: &mysqlDbName policyadmin
194 externalSecret: *dbRootPassSecretName
195 nameOverride: *policy-mariadb
196 # mariadb-galera.service and global.mariadb.service must be equals
197 service: *mariadbService
201 mountSubPath: policy/maria/data
203 nameOverride: *policy-mariadb
205 postgresImage: library/postgres:latest
206 # application configuration override for postgres
208 nameOverride: &postgresName policy-postgres
211 name2: policy-pg-primary
212 name3: policy-pg-replica
215 primary: policy-pg-primary
216 replica: policy-pg-replica
218 mountSubPath: policy/postgres/data
219 mountInitPath: policy
221 pgUserName: policy_user
222 pgDatabase: policyadmin
223 pgUserExternalSecret: *pgUserCredsSecretName
224 pgRootPasswordExternalSecret: *pgRootPassSecretName
228 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'
231 policyPapUserName: policyadmin
232 policyPapUserPassword: zb!XztG34
233 policyApiUserName: policyadmin
234 policyApiUserPassword: zb!XztG34
236 # Resource Limit flavor -By Default using small
237 # Segregation for Different environment (small, large, or unlimited)
256 #Pods Service Account