1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
3 # Modifications Copyright (C) 2021 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
31 #################################################################
33 #################################################################
35 - uid: db-root-password
36 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
38 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
39 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
42 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
44 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
45 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
46 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
47 passwordPolicy: generate
48 - uid: policy-app-user-creds
49 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
51 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
52 login: '{{ .Values.config.policyAppUserName }}'
53 password: '{{ .Values.config.policyAppUserPassword }}'
54 passwordPolicy: generate
55 - uid: policy-pap-user-creds
56 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
58 externalSecret: '{{ tpl (default "" .Values.restServer.policyPapUserExternalSecret) . }}'
59 login: '{{ .Values.restServer.policyPapUserName }}'
60 password: '{{ .Values.restServer.policyPapUserPassword }}'
61 passwordPolicy: required
62 - uid: policy-api-user-creds
63 name: &policyApiCredsSecret '{{ include "common.release" . }}-policy-api-user-creds'
65 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
66 login: '{{ .Values.restServer.policyApiUserName }}'
67 password: '{{ .Values.restServer.policyApiUserPassword }}'
68 passwordPolicy: required
71 credsExternalSecret: *dbSecretName
77 apiUserExternalSecret: *policyApiCredsSecret
82 papUserExternalSecret: *policyPapCredsSecret
83 apiUserExternalSecret: *policyApiCredsSecret
100 appUserExternalSecret: *policyAppCredsSecret
101 policy-clamp-cl-k8s-ppnt:
103 policy-clamp-cl-pf-ppnt:
106 apiUserExternalSecret: *policyApiCredsSecret
107 papUserExternalSecret: *policyPapCredsSecret
108 policy-clamp-cl-http-ppnt:
112 policy-clamp-cl-runtime:
116 appUserExternalSecret: *policyAppCredsSecret
120 #################################################################
121 # DB configuration defaults.
122 #################################################################
124 repository: nexus3.onap.org:10001
128 image: mariadb:10.5.8
131 image: onap/policy-db-migrator:2.4.1
133 policy_home: "/opt/app/policy"
138 # flag to enable debugging - application support required
141 # default number of instances
148 # probe configuration parameters
150 initialDelaySeconds: 10
152 # necessary to disable liveness probe when setting breakpoints
153 # in debugger so K8s doesn't restart unresponsive container
157 initialDelaySeconds: 10
162 policyAppUserName: runtimeUser
165 # mariadb-galera.config and global.mariadb.config must be equals
169 externalSecret: *dbSecretName
170 name: &mysqlDbName policyadmin
172 externalSecret: *dbRootPassSecretName
173 nameOverride: *policy-mariadb
174 # mariadb-galera.service and global.mariadb.service must be equals
175 service: *mariadbService
179 mountSubPath: policy/maria/data
181 nameOverride: *policy-mariadb
184 policyPapUserName: policyadmin
185 policyPapUserPassword: zb!XztG34
186 policyApiUserName: policyadmin
187 policyApiUserPassword: zb!XztG34
189 # Resource Limit flavor -By Default using small
190 # Segregation for Different environment (small, large, or unlimited)
209 #Pods Service Account