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
33 name: &policy-mariadb policy-mariadb
35 nameOverride: *policy-mariadb
36 # (optional) if localCluster=false and an external secret is used set this variable
37 #userRootSecret: <secretName>
38 prometheusEnabled: false
43 name2: tcp-pgset-primary
44 name3: tcp-pgset-replica
47 #Strimzi Kafka properties
49 # Temporary flag to disable strimzi for pf components - will be removed after native kafka support is added for drools and xacml
50 useStrimziKafkaPf: false
51 kafkaBootstrap: strimzi-kafka-bootstrap
52 policyKafkaUser: policy-kafka-user
55 name: policy.clamp-runtime-acm
57 #################################################################
59 #################################################################
61 - uid: db-root-password
62 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
64 externalSecret: '{{ .Values.global.mariadbGalera.localCluster |
65 ternary (( hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret")) |
68 (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .)
70 ( (not (empty (default "" .Values.global.mariadbGalera.userRootSecret))) |
72 .Values.global.mariadbGalera.userRootSecret
73 (include "common.mariadb.secret.rootPassSecretName"
74 (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)
77 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
80 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
82 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
83 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
84 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
85 passwordPolicy: generate
86 - uid: policy-app-user-creds
87 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
89 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
90 login: '{{ .Values.config.policyAppUserName }}'
91 password: '{{ .Values.config.policyAppUserPassword }}'
92 passwordPolicy: generate
93 - uid: policy-pap-user-creds
94 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
96 externalSecret: '{{ tpl (default "" .Values.restServer.policyPapUserExternalSecret) . }}'
97 login: '{{ .Values.restServer.policyPapUserName }}'
98 password: '{{ .Values.restServer.policyPapUserPassword }}'
99 passwordPolicy: required
100 - uid: policy-api-user-creds
101 name: &policyApiCredsSecret '{{ include "common.release" . }}-policy-api-user-creds'
103 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
104 login: '{{ .Values.restServer.policyApiUserName }}'
105 password: '{{ .Values.restServer.policyApiUserPassword }}'
106 passwordPolicy: required
109 credsExternalSecret: *dbSecretName
115 apiUserExternalSecret: *policyApiCredsSecret
117 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
122 papUserExternalSecret: *policyPapCredsSecret
123 apiUserExternalSecret: *policyApiCredsSecret
125 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
130 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
135 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
140 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
144 policy-clamp-ac-k8s-ppnt:
146 policy-clamp-ac-pf-ppnt:
149 apiUserExternalSecret: *policyApiCredsSecret
150 papUserExternalSecret: *policyPapCredsSecret
151 policy-clamp-ac-http-ppnt:
153 policy-clamp-ac-a1pms-ppnt:
155 policy-clamp-ac-kserve-ppnt:
157 policy-clamp-runtime-acm:
161 appUserExternalSecret: *policyAppCredsSecret
165 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
169 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
171 #################################################################
172 # DB configuration defaults.
173 #################################################################
176 image: onap/policy-db-migrator:3.0.2
178 policy_home: "/opt/app/policy"
183 # flag to enable debugging - application support required
186 # default number of instances
193 # probe configuration parameters
195 initialDelaySeconds: 10
197 # necessary to disable liveness probe when setting breakpoints
198 # in debugger so K8s doesn't restart unresponsive container
202 initialDelaySeconds: 10
207 policyAppUserName: runtimeUser
208 useStrimziKafka: true
213 segmentBytes: 1073741824
215 groupId: policy-group
216 policyHeartbeatTopic:
217 name: policy-heartbeat
220 segmentBytes: 1073741824
222 groupId: policy-group
223 policyNotificationTopic:
224 name: policy-notification
227 segmentBytes: 1073741824
229 groupId: policy-group
233 # mariadb-galera.config and global.mariadbGalera.config must be equals
237 externalSecret: *dbSecretName
238 name: &mysqlDbName policyadmin
240 externalSecret: *dbRootPassSecretName
241 nameOverride: *policy-mariadb
242 # mariadb-galera.service and global.mariadbGalera.service must be equals
243 service: *mariadbService
250 mountSubPath: policy/maria/data
252 nameOverride: *policy-mariadb
254 postgresImage: library/postgres:latest
255 # application configuration override for postgres
257 nameOverride: &postgresName policy-postgres
260 name2: policy-pg-primary
261 name3: policy-pg-replica
264 primary: policy-pg-primary
265 replica: policy-pg-replica
267 mountSubPath: policy/postgres/data
268 mountInitPath: policy
270 pgUserName: policy-user
271 pgDatabase: policyadmin
272 pgUserExternalSecret: *dbSecretName
273 pgRootPasswordExternalSecret: *dbRootPassSecretName
277 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'
280 policyPapUserName: policyadmin
281 policyPapUserPassword: zb!XztG34
282 policyApiUserName: policyadmin
283 policyApiUserPassword: zb!XztG34
285 # Resource Limit flavor -By Default using small
286 # Segregation for Different environment (small, large, or unlimited)
305 #Pods Service Account