[bitnami/apache] PDB review (#25862)

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero
2024-05-15 10:38:29 +02:00
committed by GitHub
parent 189b506526
commit aa65e09615
2 changed files with 3 additions and 2 deletions

View File

@@ -35,4 +35,4 @@ maintainers:
name: apache
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/apache
version: 11.0.3
version: 11.0.4

View File

@@ -3,7 +3,8 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if .Values.pdb.create }}
{{- $replicaCount := int .Values.replicaCount }}
{{- if and .Values.pdb.create (or (gt $replicaCount 1) .Values.autoscaling.enabled) }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata: