1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright (C) 2022-23 Nordix Foundation
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.
15 # Default values for mariadb.
16 # This is a YAML-formatted file.
17 # Declare variables to be passed into your templates.
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
23 nodePortPrefixExt: 304
24 repository: nexus3.onap.org:10001
25 readinessImage: onap/oom/readiness:5.0.1
26 ubuntuInitRepository: docker.io
28 nameOverride: &mariadbName mariadb-galera
29 service: mariadb-galera-primary
33 dbHost: mariadb-galera
36 dbPassword: secretpassword
43 #################################################################
45 #################################################################
48 name: '{{ include "common.release" . }}-so-mariadb-root-pass'
50 externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}'
51 password: '{{ .Values.db.rootPassword }}'
52 passwordPolicy: required
53 - uid: db-backup-creds
54 name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
56 externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}'
57 login: '{{ .Values.db.backupUser }}'
58 password: '{{ .Values.db.backupPassword }}'
59 passwordPolicy: required
61 helm.sh/hook: pre-upgrade,pre-install
62 helm.sh/hook-weight: "0"
63 helm.sh/hook-delete-policy: before-hook-creation
66 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
67 login: '{{ .Values.db.userName }}'
68 password: '{{ .Values.db.userPassword }}'
71 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
72 login: '{{ .Values.db.adminName }}'
73 password: '{{ .Values.db.adminPassword }}'
74 - uid: camunda-db-creds
76 externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}'
77 login: '{{ .Values.db.camunda.userName }}'
78 password: '{{ .Values.db.camunda.password }}'
79 - uid: request-db-creds
81 externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}'
82 login: '{{ .Values.db.request.userName }}'
83 password: '{{ .Values.db.request.password }}'
84 - uid: catalog-db-creds
86 externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}'
87 login: '{{ .Values.db.catalog.userName }}'
88 password: '{{ .Values.db.catalog.password }}'
91 externalSecret: '{{ tpl (default "" .Values.db.nfvo.dbCredsExternalSecret) . }}'
92 login: '{{ .Values.db.nfvo.userName }}'
93 password: '{{ .Values.db.nfvo.password }}'
96 externalSecret: '{{ tpl (default "" .Values.db.cnfm.dbCredsExternalSecret) . }}'
97 login: '{{ .Values.db.cnfm.userName }}'
98 password: '{{ .Values.db.cnfm.password }}'
100 #################################################################
101 # Application configuration defaults.
102 #################################################################
104 repository: nexus3.onap.org:10001
105 image: mariadb:10.1.38
107 ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
111 rootPassword: secretpassword
112 # rootPasswordExternalSecret: some secret
113 backupPassword: secretpassword
115 # backupCredsExternalSecret: some secret
117 userPassword: so_User123
118 # userCredsExternalSecret: some secret
120 adminPassword: so_Admin123
121 # adminCredsExternalSecret: some secret
123 userName: camundauser
125 # dbCredsExternalSecret: some secret
127 userName: requestuser
129 # dbCredsExternalSecret: some secret
131 userName: cataloguser
133 # dbCredsExternalSecret: some secret
136 # dbCredsExternalSecret: some secret
139 # dbCredsExternalSecret: some secret
141 # application configuration
143 # gerrit branch where the latest heat code is checked in
145 # gerrit project where the latest heat code is checked in
146 gerritProject: http://gerrit.onap.org/r/so/docker-config.git
147 # default number of instances
154 # Resource Limit flavor
176 ## A manually managed Persistent Volume and Claim
177 ## Requires persistence.enabled: true
178 ## If defined, PVC must be created manually before volume will be bound
180 volumeReclaimPolicy: Retain
181 ## database data Persistent Volume Storage Class
182 ## If defined, storageClassName: <storageClass>
183 ## If set to "-", storageClassName: "", which disables dynamic provisioning
184 ## If undefined (the default) or set to null, no storageClassName spec is
185 ## set, choosing the default provisioner. (gp2 on AWS, standard on
186 ## GKE, AWS & OpenStack)
189 accessMode: ReadWriteMany
192 mountPath: /dockerdata-nfs
193 mountSubPath: so/migration
195 #Pods Service Account
197 nameOverride: so-mariadb
201 wait_for_job_container:
203 - '{{ include "common.name" . }}-config'