[bitnami/mariadb-galera] Add persistence labels and annotations to volumeClaimTemplate (#9226)

* Add persistence labels and annotations to volumeClaimTemplate
Add persistence labels to values.yaml

Signed-off-by: Chris Werner Rau <cwrau@cwrcoding.com>

* Bump Version
Update README

Signed-off-by: Chris Werner Rau <cwrau@cwrcoding.com>
This commit is contained in:
Chris Werner Rau
2022-03-02 17:53:40 +01:00
committed by GitHub
parent 7e76326bfd
commit c8c3a6f531
4 changed files with 14 additions and 3 deletions

View File

@@ -27,4 +27,4 @@ sources:
- https://github.com/bitnami/bitnami-docker-mariadb-galera
- https://github.com/prometheus/mysqld_exporter
- https://mariadb.org
version: 7.0.6
version: 7.1.0

View File

@@ -95,7 +95,7 @@ The command removes all the Kubernetes components associated with the chart and
| --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| `image.registry` | MariaDB Galera image registry | `docker.io` |
| `image.repository` | MariaDB Galera image repository | `bitnami/mariadb-galera` |
| `image.tag` | MariaDB Galera image tag (immutable tags are recommended) | `10.6.5-debian-10-r55` |
| `image.tag` | MariaDB Galera image tag (immutable tags are recommended) | `10.6.7-debian-10-r7` |
| `image.pullPolicy` | MariaDB Galera image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
| `image.debug` | Specify if debug logs should be enabled | `false` |
@@ -192,6 +192,7 @@ The command removes all the Kubernetes components associated with the chart and
| `persistence.selector` | Selector to match an existing Persistent Volume (this value is evaluated as a template) | `{}` |
| `persistence.storageClass` | Persistent Volume Storage Class | `""` |
| `persistence.annotations` | Persistent Volume Claim annotations | `{}` |
| `persistence.labels` | Persistent Volume Claim Labels | `{}` |
| `persistence.accessModes` | Persistent Volume Access Modes | `["ReadWriteOnce"]` |
| `persistence.size` | Persistent Volume Size | `8Gi` |
| `priorityClassName` | Priority Class Name for Statefulset | `""` |
@@ -228,7 +229,7 @@ The command removes all the Kubernetes components associated with the chart and
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
| `metrics.image.registry` | MariaDB Prometheus exporter image registry | `docker.io` |
| `metrics.image.repository` | MariaDB Prometheus exporter image repository | `bitnami/mysqld-exporter` |
| `metrics.image.tag` | MariaDB Prometheus exporter image tag (immutable tags are recommended) | `0.13.0-debian-10-r219` |
| `metrics.image.tag` | MariaDB Prometheus exporter image tag (immutable tags are recommended) | `0.13.0-debian-10-r256` |
| `metrics.image.pullPolicy` | MariaDB Prometheus exporter image pull policy | `IfNotPresent` |
| `metrics.image.pullSecrets` | MariaDB Prometheus exporter image pull secrets | `[]` |
| `metrics.extraFlags` | MariaDB Prometheus exporter additional command line flags | `[]` |

View File

@@ -462,6 +462,13 @@ spec:
name: data
labels: {{- include "common.labels.matchLabels" . | nindent 10 }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.persistence.labels }}
{{- include "common.tplvalues.render" (dict "value" .Values.persistence.labels "context" $) | nindent 10 }}
{{- end }}
{{- if .Values.persistence.annotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.persistence.annotations "context" $) | nindent 10 }}
{{- end }}
spec:
accessModes:
{{- range .Values.persistence.accessModes }}

View File

@@ -605,6 +605,9 @@ persistence:
## @param persistence.annotations Persistent Volume Claim annotations
##
annotations: {}
## @param persistence.labels Persistent Volume Claim Labels
##
labels: {}
## @param persistence.accessModes Persistent Volume Access Modes
##
accessModes: