Skip to content

Commit

Permalink
feat: deploy PDB if Keda is enabled and the minimum amount of replica…
Browse files Browse the repository at this point in the history
…s is greater than 1
  • Loading branch information
StuxxNet committed Feb 27, 2024
1 parent bb6d1b7 commit 29c4237
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,4 +1,4 @@
{{- 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)) }}
{{- 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))}}
apiVersion: {{ ternary "policy/v1" "policy/v1beta1" (semverCompare ">=1.21.0-0" .Capabilities.KubeVersion.Version) }}
kind: PodDisruptionBudget
metadata:
Expand Down

0 comments on commit 29c4237

Please sign in to comment.