From 1a2abfea3c23519c3d202049cf5a4cb893df253c Mon Sep 17 00:00:00 2001 From: Fran Mulero Date: Thu, 30 May 2024 09:42:55 +0200 Subject: [PATCH] [bitnami/joomla] Enable PodDisruptionBudgets (#26498) * [bitnami/joomla] Enable PodDisruptionBudgets Signed-off-by: Fran Mulero * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Skip markdown linter Signed-off-by: Fran Mulero * Update CHANGELOG.md Signed-off-by: Bitnami Containers --------- Signed-off-by: Fran Mulero Signed-off-by: Bitnami Containers Co-authored-by: Bitnami Containers --- bitnami/joomla/CHANGELOG.md | 8 ++++++-- bitnami/joomla/Chart.yaml | 2 +- bitnami/joomla/README.md | 5 ++++- bitnami/joomla/templates/pdb.yaml | 28 ++++++++++++++++++++++++++++ bitnami/joomla/values.yaml | 10 ++++++++++ 5 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 bitnami/joomla/templates/pdb.yaml diff --git a/bitnami/joomla/CHANGELOG.md b/bitnami/joomla/CHANGELOG.md index 613eeda983..5836cb2b26 100644 --- a/bitnami/joomla/CHANGELOG.md +++ b/bitnami/joomla/CHANGELOG.md @@ -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)) + +## 19.1.1 (2024-05-28) + +* [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) diff --git a/bitnami/joomla/Chart.yaml b/bitnami/joomla/Chart.yaml index 1c17522d8e..4aefe20f6d 100644 --- a/bitnami/joomla/Chart.yaml +++ b/bitnami/joomla/Chart.yaml @@ -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 diff --git a/bitnami/joomla/README.md b/bitnami/joomla/README.md index 18bd9e646a..a08e0df117 100644 --- a/bitnami/joomla/README.md +++ b/bitnami/joomla/README.md @@ -1,5 +1,5 @@ - + # 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 | `""` | diff --git a/bitnami/joomla/templates/pdb.yaml b/bitnami/joomla/templates/pdb.yaml new file mode 100644 index 0000000000..78cdfe4526 --- /dev/null +++ b/bitnami/joomla/templates/pdb.yaml @@ -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 }} diff --git a/bitnami/joomla/values.yaml b/bitnami/joomla/values.yaml index 28ce164f42..1735314baf 100644 --- a/bitnami/joomla/values.yaml +++ b/bitnami/joomla/values.yaml @@ -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: []