diff --git a/bitnami/mariadb/Chart.yaml b/bitnami/mariadb/Chart.yaml index 67ee090c4..1d3723d9f 100644 --- a/bitnami/mariadb/Chart.yaml +++ b/bitnami/mariadb/Chart.yaml @@ -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: diff --git a/bitnami/mariadb/README.md b/bitnami/mariadb/README.md index e76971218..7d4a8ab15 100644 --- a/bitnami/mariadb/README.md +++ b/bitnami/mariadb/README.md @@ -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` | diff --git a/bitnami/mariadb/templates/master-statefulset.yaml b/bitnami/mariadb/templates/master-statefulset.yaml index bbe467cca..25f0e69c4 100644 --- a/bitnami/mariadb/templates/master-statefulset.yaml +++ b/bitnami/mariadb/templates/master-statefulset.yaml @@ -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 }} diff --git a/bitnami/mariadb/templates/slave-statefulset.yaml b/bitnami/mariadb/templates/slave-statefulset.yaml index 4577db2b6..681e41914 100644 --- a/bitnami/mariadb/templates/slave-statefulset.yaml +++ b/bitnami/mariadb/templates/slave-statefulset.yaml @@ -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 }} diff --git a/bitnami/mariadb/values-production.yaml b/bitnami/mariadb/values-production.yaml index d9b63b887..f760e9116 100644 --- a/bitnami/mariadb/values-production.yaml +++ b/bitnami/mariadb/values-production.yaml @@ -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 ## diff --git a/bitnami/mariadb/values.yaml b/bitnami/mariadb/values.yaml index 73bf63e93..7a8563a0e 100644 --- a/bitnami/mariadb/values.yaml +++ b/bitnami/mariadb/values.yaml @@ -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 ##