[bitnami/joomla] Enable PodDisruptionBudgets (#26498)

* [bitnami/joomla] Enable PodDisruptionBudgets

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Skip markdown linter

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Fran Mulero
2024-05-30 09:42:55 +02:00
committed by GitHub
parent 0b2205adbf
commit 1a2abfea3c
5 changed files with 49 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 19.1.1 (2024-05-28)
## 19.2.0 (2024-05-29)
* [bitnami/joomla] Release 19.1.1 ([#26518](https://github.com/bitnami/charts/pull/26518))
* [bitnami/joomla] Enable PodDisruptionBudgets ([#26498](https://github.com/bitnami/charts/pull/26498))
## <small>19.1.1 (2024-05-28)</small>
* [bitnami/joomla] Release 19.1.1 (#26518) ([ba7a123](https://github.com/bitnami/charts/commit/ba7a1236f7a4cf87ed14d5008250bdfed0f967fc)), closes [#26518](https://github.com/bitnami/charts/issues/26518)
## 19.1.0 (2024-05-21)

View File

@@ -36,4 +36,4 @@ maintainers:
name: joomla
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/joomla
version: 19.1.1
version: 19.2.0

View File

@@ -1,5 +1,5 @@
<!--- app-name: Joomla! -->
<!-- markdownlint-disable-next-line MD026 -->
# Bitnami package for Joomla!
Joomla! is an award winning open source CMS platform for building websites and applications. It includes page caching, page compression and Let's Encrypt auto-configuration support.
@@ -171,6 +171,9 @@ You may want to review the [PV reclaim policy](https://kubernetes.io/docs/tasks/
| `extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `[]` |
| `extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes` | `[]` |
| `initContainers` | Add additional init containers to the pod (evaluated as a template) | `[]` |
| `pdb.create` | Enable/disable a Pod Disruption Budget creation | `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. | `""` |
| `sidecars` | Attach additional containers to the pod (evaluated as a template) | `[]` |
| `existingSecret` | Name of a secret with the application password | `""` |
| `smtpHost` | SMTP host | `""` |

View File

@@ -0,0 +1,28 @@
{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if .Values.pdb.create }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: joomla
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.pdb.minAvailable }}
minAvailable: {{ .Values.pdb.minAvailable }}
{{- end }}
{{- if or .Values.pdb.maxUnavailable ( not .Values.pdb.minAvailable ) }}
maxUnavailable: {{ .Values.pdb.maxUnavailable | default 1 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: joomla
{{- end }}

View File

@@ -156,6 +156,16 @@ extraVolumeMounts: []
## @param initContainers Add additional init containers to the pod (evaluated as a template)
##
initContainers: []
## Pod Disruption Budget configuration
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
## @param pdb.create Enable/disable a Pod Disruption Budget creation
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
## @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.
##
pdb:
create: true
minAvailable: ""
maxUnavailable: ""
## @param sidecars Attach additional containers to the pod (evaluated as a template)
##
sidecars: []