Skip to content

Commit 29c4237

Browse files
committed
feat: deploy PDB if Keda is enabled and the minimum amount of replicas is greater than 1
1 parent bb6d1b7 commit 29c4237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/ingress-nginx/templates/controller-poddisruptionbudget.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (and (not .Values.controller.autoscaling.enabled) (gt (.Values.controller.replicaCount | int) 1)) }}
1+
{{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (and (not .Values.controller.autoscaling.enabled) (gt (.Values.controller.replicaCount | int) 1)) (and .Values.controller.keda.enabled (gt (.Values.controller.keda.minReplicas | int) 1))}}
22
apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }}
33
kind: PodDisruptionBudget
44
metadata:

0 commit comments

Comments
 (0)