mirror of
https://github.com/bitnami/charts.git
synced 2026-03-03 06:58:45 +08:00
[bitnami/mariadb-galera] PDB review (#25979)
* [bitnami/mariadb-galera] PDB Review Signed-off-by: Fran Mulero <fmulero@vmware.com> * Add 'podDisruptionBudget' value deprecation message and enable pdb.create by default Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Version bump Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Fran Mulero <fmulero@vmware.com> Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -33,4 +33,4 @@ maintainers:
|
||||
name: mariadb-galera
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/mariadb-galera
|
||||
version: 13.1.0
|
||||
version: 13.2.0
|
||||
|
||||
@@ -566,9 +566,10 @@ The chart mounts a [Persistent Volume](https://kubernetes.io/docs/concepts/stora
|
||||
| `customStartupProbe` | Custom liveness probe for the Web component | `{}` |
|
||||
| `customLivenessProbe` | Custom liveness probe for the Web component | `{}` |
|
||||
| `customReadinessProbe` | Custom rediness probe for the Web component | `{}` |
|
||||
| `podDisruptionBudget.create` | Specifies whether a Pod disruption budget should be created | `false` |
|
||||
| `podDisruptionBudget.minAvailable` | Minimum number / percentage of pods that should remain scheduled | `1` |
|
||||
| `podDisruptionBudget.maxUnavailable` | Maximum number / percentage of pods that may be made unavailable | `""` |
|
||||
| `podDisruptionBudget` | DEPRECATED podDisruptionBudget will be removed in a future release. Please use pdb instead | `{}` |
|
||||
| `pdb.create` | Specifies whether a Pod disruption budget should be created | `true` |
|
||||
| `pdb.minAvailable` | Minimum number / percentage of pods that should remain scheduled | `""` |
|
||||
| `pdb.maxUnavailable` | Maximum number / percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty. | `""` |
|
||||
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
|
||||
| `metrics.image.registry` | MariaDB Prometheus exporter image registry | `REGISTRY_NAME` |
|
||||
| `metrics.image.repository` | MariaDB Prometheus exporter image repository | `REPOSITORY_NAME/mysqld-exporter` |
|
||||
|
||||
@@ -3,7 +3,8 @@ Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if .Values.podDisruptionBudget.create }}
|
||||
{{- $pdb := coalesce .Values.pdb .Values.podDisruptionBudget }}
|
||||
{{- if $pdb.create }}
|
||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
@@ -14,11 +15,11 @@ metadata:
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.podDisruptionBudget.minAvailable }}
|
||||
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
||||
{{- if $pdb.minAvailable }}
|
||||
minAvailable: {{ $pdb.minAvailable }}
|
||||
{{- end }}
|
||||
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
||||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
||||
{{- if or $pdb.maxUnavailable (not $pdb.minAvailable) }}
|
||||
maxUnavailable: {{ $pdb.maxUnavailable | default 1 }}
|
||||
{{- end }}
|
||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
|
||||
selector:
|
||||
|
||||
@@ -853,15 +853,18 @@ customLivenessProbe: {}
|
||||
##
|
||||
customReadinessProbe: {}
|
||||
## Pod disruption budget configuration
|
||||
##
|
||||
podDisruptionBudget:
|
||||
## @param podDisruptionBudget.create Specifies whether a Pod disruption budget should be created
|
||||
##
|
||||
## @param podDisruptionBudget DEPRECATED podDisruptionBudget will be removed in a future release. Please use pdb instead
|
||||
##
|
||||
podDisruptionBudget: {}
|
||||
pdb:
|
||||
## @param pdb.create Specifies whether a Pod disruption budget should be created
|
||||
##
|
||||
create: false
|
||||
## @param podDisruptionBudget.minAvailable Minimum number / percentage of pods that should remain scheduled
|
||||
create: true
|
||||
## @param pdb.minAvailable Minimum number / percentage of pods that should remain scheduled
|
||||
##
|
||||
minAvailable: 1
|
||||
## @param podDisruptionBudget.maxUnavailable Maximum number / percentage of pods that may be made unavailable
|
||||
minAvailable: ""
|
||||
## @param pdb.maxUnavailable Maximum number / percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
|
||||
##
|
||||
maxUnavailable: ""
|
||||
## Prometheus exporter configuration
|
||||
|
||||
Reference in New Issue
Block a user