1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
3 # Modifications Copyright (C) 2021-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 #################################################################
18 # Global configuration defaults.
19 #################################################################
22 # flag to enable the DB creation via mariadb-operator
24 # if useOperator set to "true", set "enableServiceAccount to "false"
25 # as the SA is created by the Operator
26 enableServiceAccount: false
28 # '&mariadbConfig' means we "store" the values for later use in the file
29 # with '*mariadbConfig' pointer.
30 config: &mariadbConfig
31 mysqlDatabase: policyadmin
32 service: &mariadbService policy-mariadb
34 nameOverride: *mariadbService
35 # (optional) if localCluster=false and an external secret is used set this variable
36 #userRootSecret: <secretName>
37 prometheusEnabled: false
42 name2: tcp-pgset-primary
43 name3: tcp-pgset-replica
46 kafkaBootstrap: strimzi-kafka-bootstrap:9092
47 policyKafkaUser: policy-kafka-user
50 name: policy.clamp-runtime-acm
51 #################################################################
53 #################################################################
55 - uid: db-root-password
56 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
58 externalSecret: '{{ .Values.global.mariadbGalera.localCluster |
59 ternary (( hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret")) |
62 (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .)
64 ( (not (empty (default "" .Values.global.mariadbGalera.userRootSecret))) |
66 .Values.global.mariadbGalera.userRootSecret
67 (include "common.mariadb.secret.rootPassSecretName"
68 (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)
71 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
74 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
76 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
77 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
78 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
79 passwordPolicy: generate
80 - uid: policy-app-user-creds
81 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
83 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
84 login: '{{ .Values.config.policyAppUserName }}'
85 password: '{{ .Values.config.policyAppUserPassword }}'
86 passwordPolicy: generate
87 - uid: policy-pap-user-creds
88 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
90 externalSecret: '{{ tpl (default "" .Values.restServer.policyPapUserExternalSecret) . }}'
91 login: '{{ .Values.restServer.policyPapUserName }}'
92 password: '{{ .Values.restServer.policyPapUserPassword }}'
93 passwordPolicy: required
94 - uid: policy-api-user-creds
95 name: &policyApiCredsSecret '{{ include "common.release" . }}-policy-api-user-creds'
97 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
98 login: '{{ .Values.restServer.policyApiUserName }}'
99 password: '{{ .Values.restServer.policyApiUserPassword }}'
100 passwordPolicy: required
103 credsExternalSecret: *dbSecretName
109 apiUserExternalSecret: *policyApiCredsSecret
111 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
116 papUserExternalSecret: *policyPapCredsSecret
117 apiUserExternalSecret: *policyApiCredsSecret
119 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
124 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
129 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
134 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
138 policy-clamp-ac-k8s-ppnt:
140 policy-clamp-ac-pf-ppnt:
143 apiUserExternalSecret: *policyApiCredsSecret
144 papUserExternalSecret: *policyPapCredsSecret
145 policy-clamp-ac-http-ppnt:
147 policy-clamp-ac-a1pms-ppnt:
149 policy-clamp-ac-kserve-ppnt:
151 policy-clamp-runtime-acm:
155 appUserExternalSecret: *policyAppCredsSecret
159 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
163 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
165 #################################################################
166 # DB configuration defaults.
167 #################################################################
170 image: onap/policy-db-migrator:3.1.0
172 policy_home: "/opt/app/policy"
177 # flag to enable debugging - application support required
180 # default number of instances
187 # probe configuration parameters
189 initialDelaySeconds: 10
191 # necessary to disable liveness probe when setting breakpoints
192 # in debugger so K8s doesn't restart unresponsive container
196 initialDelaySeconds: 10
201 policyAppUserName: runtimeUser
206 segmentBytes: 1073741824
208 groupId: policy-group
209 policyHeartbeatTopic:
210 name: policy-heartbeat
213 segmentBytes: 1073741824
215 groupId: policy-group
216 policyNotificationTopic:
217 name: policy-notification
220 segmentBytes: 1073741824
222 groupId: policy-group
226 # mariadb-galera.config and global.mariadbGalera.config must be equals
230 externalSecret: *dbSecretName
231 name: &mysqlDbName policyadmin
233 externalSecret: *dbRootPassSecretName
234 nameOverride: *mariadbService
235 # mariadb-galera.service and global.mariadbGalera.service must be equals
237 name: *mariadbService
244 mountSubPath: policy/maria/data
246 nameOverride: *mariadbService
248 postgresImage: library/postgres:latest
249 # application configuration override for postgres
251 nameOverride: &postgresName policy-postgres
254 name2: policy-pg-primary
255 name3: policy-pg-replica
258 primary: policy-pg-primary
259 replica: policy-pg-replica
261 mountSubPath: policy/postgres/data
262 mountInitPath: policy
264 pgUserName: policy-user
265 pgDatabase: policyadmin
266 pgUserExternalSecret: *dbSecretName
267 pgRootPasswordExternalSecret: *dbRootPassSecretName
272 - '{{ .Values.global.postgres.service.name2 }}'
275 - '{{ include "common.mariadbService" . }}'
278 policyPapUserName: policyadmin
279 policyPapUserPassword: zb!XztG34
280 policyApiUserName: policyadmin
281 policyApiUserPassword: zb!XztG34
283 # Resource Limit flavor -By Default using small
284 # Segregation for Different environment (small, large, or unlimited)
303 #Pods Service Account