From 0745fc67ba56efd4a88d5598510aa975b1329992 Mon Sep 17 00:00:00 2001 From: ajinkya6 <112479022+ajinkya6@users.noreply.github.com> Date: Fri, 6 Sep 2024 13:08:54 +0530 Subject: [PATCH] patch: update pdb (#118) * feat: update pdb * fix: formatting changes --- stable/app/templates/poddisruptionbudget.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stable/app/templates/poddisruptionbudget.yaml b/stable/app/templates/poddisruptionbudget.yaml index 30d51920..11fb2216 100644 --- a/stable/app/templates/poddisruptionbudget.yaml +++ b/stable/app/templates/poddisruptionbudget.yaml @@ -1,4 +1,4 @@ -{{- if and .Values.pdb.enabled (gt (int .Values.replicaCount) 1) }} +{{- if and .Values.pdb.enabled (or (and .Values.autoscaling.enabled (gt (int .Values.autoscaling.minReplicas) 1)) (gt (int .Values.replicaCount) 1)) }} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: