[bitnami/template] PodDisruptionBudget template more permissive (#25911)

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero
2024-05-15 15:54:40 +02:00
committed by GitHub
parent 52351399e9
commit 8ba61770a8
+1 -2
View File
@@ -3,8 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $replicaCount := int .Values.%%MAIN_OBJECT_BLOCK%%.replicaCount }}
{{- if and .Values.%%MAIN_OBJECT_BLOCK%%.pdb.create (or (gt $replicaCount 1) .Values.%%MAIN_OBJECT_BLOCK%%.autoscaling.enabled) }}
{{- if and .Values.%%MAIN_OBJECT_BLOCK%%.pdb.create }}
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
kind: PodDisruptionBudget
metadata: