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:4.1.0
26 ubuntuInitRepository: docker.io
28 nameOverride: &mariadbName mariadb-galera
29 serviceName: mariadb-galera
33 dbHost: mariadb-galera
36 dbPassword: secretpassword
42 #################################################################
44 #################################################################
47 name: '{{ include "common.release" . }}-so-mariadb-root-pass'
49 externalSecret: '{{ tpl (default "" .Values.db.rootPasswordExternalSecret) . }}'
50 password: '{{ .Values.db.rootPassword }}'
51 passwordPolicy: required
52 - uid: db-backup-creds
53 name: '{{ include "common.release" . }}-so-mariadb-backup-creds'
55 externalSecret: '{{ tpl (default "" .Values.db.backupCredsExternalSecret) . }}'
56 login: '{{ .Values.db.backupUser }}'
57 password: '{{ .Values.db.backupPassword }}'
58 passwordPolicy: required
60 helm.sh/hook: pre-upgrade,pre-install
61 helm.sh/hook-weight: "0"
62 helm.sh/hook-delete-policy: before-hook-creation
65 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
66 login: '{{ .Values.db.userName }}'
67 password: '{{ .Values.db.userPassword }}'
70 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
71 login: '{{ .Values.db.adminName }}'
72 password: '{{ .Values.db.adminPassword }}'
73 - uid: camunda-db-creds
75 externalSecret: '{{ tpl (default "" .Values.db.camunda.dbCredsExternalSecret) . }}'
76 login: '{{ .Values.db.camunda.userName }}'
77 password: '{{ .Values.db.camunda.password }}'
78 - uid: request-db-creds
80 externalSecret: '{{ tpl (default "" .Values.db.request.dbCredsExternalSecret) . }}'
81 login: '{{ .Values.db.request.userName }}'
82 password: '{{ .Values.db.request.password }}'
83 - uid: catalog-db-creds
85 externalSecret: '{{ tpl (default "" .Values.db.catalog.dbCredsExternalSecret) . }}'
86 login: '{{ .Values.db.catalog.userName }}'
87 password: '{{ .Values.db.catalog.password }}'
90 externalSecret: '{{ tpl (default "" .Values.db.nfvo.dbCredsExternalSecret) . }}'
91 login: '{{ .Values.db.nfvo.userName }}'
92 password: '{{ .Values.db.nfvo.password }}'
95 externalSecret: '{{ tpl (default "" .Values.db.cnfm.dbCredsExternalSecret) . }}'
96 login: '{{ .Values.db.cnfm.userName }}'
97 password: '{{ .Values.db.cnfm.password }}'
99 #################################################################
100 # Application configuration defaults.
101 #################################################################
103 repository: nexus3.onap.org:10001
104 image: mariadb:10.1.38
106 ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
110 rootPassword: secretpassword
111 # rootPasswordExternalSecret: some secret
112 backupPassword: secretpassword
114 # backupCredsExternalSecret: some secret
116 userPassword: so_User123
117 # userCredsExternalSecret: some secret
119 adminPassword: so_Admin123
120 # adminCredsExternalSecret: some secret
122 userName: camundauser
124 # dbCredsExternalSecret: some secret
126 userName: requestuser
128 # dbCredsExternalSecret: some secret
130 userName: cataloguser
132 # dbCredsExternalSecret: some secret
135 # dbCredsExternalSecret: some secret
138 # dbCredsExternalSecret: some secret
140 # application configuration
142 # gerrit branch where the latest heat code is checked in
144 # gerrit project where the latest heat code is checked in
145 gerritProject: http://gerrit.onap.org/r/so/docker-config.git
146 # default number of instances
153 # Resource Limit flavor
175 ## A manually managed Persistent Volume and Claim
176 ## Requires persistence.enabled: true
177 ## If defined, PVC must be created manually before volume will be bound
179 volumeReclaimPolicy: Retain
180 ## database data Persistent Volume Storage Class
181 ## If defined, storageClassName: <storageClass>
182 ## If set to "-", storageClassName: "", which disables dynamic provisioning
183 ## If undefined (the default) or set to null, no storageClassName spec is
184 ## set, choosing the default provisioner. (gp2 on AWS, standard on
185 ## GKE, AWS & OpenStack)
188 accessMode: ReadWriteMany
191 mountPath: /dockerdata-nfs
192 mountSubPath: so/migration
194 #Pods Service Account
196 nameOverride: so-mariadb
200 wait_for_job_container:
202 - '{{ include "common.name" . }}-config'