[bitnami/mariadb] Implement persistence selector (#3620)

Co-authored-by: Panu Oksiala <panu.oksiala@elisa.fi>
This commit is contained in:
poksiala
2020-09-11 10:13:27 +02:00
committed by GitHub
co-authored by Panu Oksiala
parent 95a43f0023
commit 995aaff959
6 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: mariadb
version: 7.9.4
version: 7.10.0
appVersion: 10.3.24
description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster.
keywords:
+2
View File
@@ -117,6 +117,7 @@ The following table lists the configurable parameters of the MariaDB chart and t
| `master.persistence.storageClass` | Persistent Volume Storage Class | `` |
| `master.persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` |
| `master.persistence.size` | Persistent Volume Size | `8Gi` |
| `master.persistence.selector` | Selector to match an existing Persistent Volume (this value is evaluated as a template) | `{}` |
| `master.extraInitContainers` | Additional init containers as a string to be passed to the `tpl` function (master) | |
| `master.extraEnvVars` | Array containing extra env vars to configure MariaDB master replicas | `nil` |
| `master.extraEnvVarsCM` | Configmap containing extra env vars to configure MariaDB master replicas | `nil` |
@@ -153,6 +154,7 @@ The following table lists the configurable parameters of the MariaDB chart and t
| `slave.persistence.storageClass` | Persistent Volume Storage Class | `` |
| `slave.persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` |
| `slave.persistence.size` | Persistent Volume Size | `8Gi` |
| `slave.persistence.selector` | Selector to match an existing Persistent Volume (this value is evaluated as a template) | `{}` |
| `slave.extraInitContainers` | Additional init containers as a string to be passed to the `tpl` function (slave) | `nil` |
| `slave.extraEnvVars` | Array containing extra env vars to configure MariaDB slave replicas | `nil` |
| `slave.extraEnvVarsCM` | ConfigMap containing extra env vars to configure MariaDB slave replicas | `nil` |
@@ -340,4 +340,7 @@ spec:
requests:
storage: {{ .Values.master.persistence.size | quote }}
{{ include "mariadb.master.storageClass" . }}
{{- if .Values.master.persistence.selector }}
selector: {{- include "mariadb.tplValue" (dict "value" .Values.master.persistence.selector "context" $) | nindent 10 }}
{{- end -}}
{{- end }}
@@ -309,5 +309,8 @@ spec:
requests:
storage: {{ .Values.slave.persistence.size | quote }}
{{ include "mariadb.slave.storageClass" . }}
{{- if .Values.slave.persistence.selector }}
selector: {{- include "mariadb.tplValue" (dict "value" .Values.slave.persistence.selector "context" $) | nindent 10 }}
{{- end -}}
{{- end }}
{{- end }}
+10
View File
@@ -286,6 +286,11 @@ master:
## Persistent Volume size
##
size: 8Gi
## selector can be used to match an existing PersistentVolume
## selector:
## matchLabels:
## app: my-app
selector: {}
extraInitContainers: []
@@ -430,6 +435,11 @@ slave:
## Persistent Volume size
##
size: 8Gi
## selector can be used to match an existing PersistentVolume
## selector:
## matchLabels:
## app: my-app
selector: {}
## Add extra init containers
##
+10
View File
@@ -270,6 +270,11 @@ master:
## Persistent Volume size
##
size: 8Gi
## selector can be used to match an existing PersistentVolume
## selector:
## matchLabels:
## app: my-app
selector: {}
## Add extra init Containers (evaluated as a templ
##
@@ -409,6 +414,11 @@ slave:
## Persistent Volume size
##
size: 8Gi
## selector can be used to match an existing PersistentVolume
## selector:
## matchLabels:
## app: my-app
selector: {}
## Add extra init containers
##