blob: 2d5de97e7ca73ad07fa28bac9f006ea8bbe07548 [file] [log] [blame]
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +01001# Copyright © 2018 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#################################################################
16# Global configuration defaults.
17#################################################################
18global:
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010019 mariadbGalera:
20 nameOverride: mariadb-galera
21 servicePort: 3306
22 # set these two values if you want to access an 'out of ONAP' mariadb
Krzysztof Opasiakd7322442020-01-30 12:10:40 +010023 # userRootPassword: some-password
24 # userRootSecret: some-secret-name
25 # userRootSecretKey: password
26
27#################################################################
28# Secrets metaconfig
29#################################################################
30secrets:
31 - uid: root-password
32 type: password
Krzysztof Opasiak80e39d42020-08-31 22:25:52 +020033 externalSecret: '{{ tpl (ternary (default "" .Values.mariadbGalera.userRootSecret) (default (include "mariadbInit.mariadbClusterSecret" .) .Values.global.mariadbGalera.userRootSecret) (not (empty (default "" .Values.mariadbGalera.serviceName)))) . }}'
34 password: '{{ tpl (ternary (default "" .Values.mariadbGalera.userRootPassword) (default "" .Values.global.mariadbGalera.userRootPassword) (not (empty (default "" .Values.mariadbGalera.serviceName)))) . }}'
Krzysztof Opasiakd7322442020-01-30 12:10:40 +010035 - uid: '{{ .Values.config.mysqlDatabase }}'
36 type: basicAuth
Krzysztof Opasiak8cf46b42020-02-08 01:07:21 +010037 externalSecret: '{{ tpl (default "" .Values.config.userCredentialsExternalSecret) . }}'
Krzysztof Opasiakd7322442020-01-30 12:10:40 +010038 login: '{{ .Values.config.userName }}'
39 password: '{{ .Values.config.userPassword }}'
40 passwordPolicy: required
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010041
42#################################################################
43# Application configuration defaults.
44#################################################################
45
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010046pullPolicy: IfNotPresent
47
RPMishrae4ee7f12020-10-07 12:09:01 +053048# These two values are used to supply commands that are run after the DB is created.
49# Components using the shared DB can either pass a string which has a set of commands
50# or a config map that contains a shell script. If both are specified only the config
51# map will be executed. For reference, please see the VID components for config map
52dbScript: ""
53dbScriptConfigMap: ""
54
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010055# Set it if you want to change the name of the different components
56# nameOverride:
57
Krzysztof Opasiak80e39d42020-08-31 22:25:52 +020058mariadbGalera: {}
59# serviceName: some-name
60# containerName: some-name
61# servicePort: 3306
62# userRootPassword: some-password
63# userRootSecret: some-secret-name
64# userRootSecretKey: password
65
Andreas Geissler1ffb6512022-12-12 15:03:24 +010066# These are default settings, required for a chart compilation with "local" cluster
67# setting. These values need to be overwritten in the component's values.yaml, e.g.
68# global:
69# mariadbGalera: &mariadbGalera
70# #This flag allows SO to instantiate its own mariadb-galera cluster
71# localCluster: true
72# service: nbi-galera
73# internalPort: 3306
74# nameOverride: nbi-galera
75# mariadb-init:
76# mariadb-galera:
77# nameOverride: nbi-galera
78# service:
79# internalPort: 3306
80mariadb-galera:
81 service:
82 internalPort: 3306
83 nameOverride: mariadb-galera
Krzysztof Opasiak80e39d42020-08-31 22:25:52 +020084
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010085config:
86 userPassword: Ci@shsOd3pky1Vji
87 userName: u5WZ1GMSIS1wHZF
Krzysztof Opasiakd7322442020-01-30 12:10:40 +010088 # set this value if you would like to use external secret instead of providing a password
Krzysztof Opasiak8cf46b42020-02-08 01:07:21 +010089 # userCredentialsExternalsecret: some-secret-name
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010090 mysqlDatabase: ynsaUCru6mUNwGal
91 mysqlAdditionalDatabases: {}
92 # add addtional dabases
93 # this is an dict
94 # Example:
95 # mysqlAdditionalDatabases:
96 # dbOne:
97 # user: one
98 # password: pwd1
Krzysztof Opasiakd7322442020-01-30 12:10:40 +010099 # externalSecret: some-secret-name
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +0100100 # dbTwo:
101 # user: two
102 # password: pwd2
Krzysztof Opasiakd7322442020-01-30 12:10:40 +0100103 # externalSecret: some-secret-name
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +0100104 config_map: default
105
106nodeSelector: {}
107
108affinity: {}
109
110#resources: {}
111 # We usually recommend not to specify default resources and to leave this as a conscious
112 # choice for the user. This also increases chances charts run on environments with little
113 # resources, such as Minikube. If you do want to specify resources, uncomment the following
114 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
115 #
116 # Example:
117 # Configure resource requests and limits
118 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
119 # Minimum memory for development is 2 CPU cores and 4GB memory
120 # Minimum memory for production is 4 CPU cores and 8GB memory
121flavor: small
122resources:
123 small:
124 limits:
125 cpu: 100m
126 memory: 500Mi
127 requests:
128 cpu: 10m
129 memory: 10Mi
130 large:
131 limits:
132 cpu: 200m
133 memory: 500Mi
134 requests:
135 cpu: 20m
136 memory: 20Mi
137 unlimited: {}
Andreas Geisslerba1200c2022-04-07 17:02:59 +0200138
vladimir turokd8044182023-07-27 16:28:36 +0200139#Pods Service Account
140serviceAccount:
141 nameOverride: mariadb-init
142 roles:
143 - read
144
Andreas Geisslerba1200c2022-04-07 17:02:59 +0200145wait_for_job_container:
146 containers:
147 - '{{ include "common.name" . }}'