From b276dbc9da604e6d7574ebf28659a32ddba29975 Mon Sep 17 00:00:00 2001 From: Chi-En Wu Date: Thu, 23 Apr 2020 17:05:37 +0800 Subject: [PATCH] fix: correct rendering condition of PDB --- templates/_pdb.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/_pdb.yaml b/templates/_pdb.yaml index c163abf..815997b 100644 --- a/templates/_pdb.yaml +++ b/templates/_pdb.yaml @@ -26,7 +26,7 @@ spec: {{- $top := first . -}} {{- $deployment := index . 2 -}} {{- $autoscaling := index . 3 -}} -{{- if or (and $autoscaling.enabled (gt ($autoscaling.minReplicas | int) 1)) (gt ($deployment.replicaCount | int) 1) }} +{{- if or (and $autoscaling.enabled (gt ($autoscaling.minReplicas | int) 1)) (and (not $autoscaling.enabled) (gt ($deployment.replicaCount | int) 1)) }} {{- include "common.utils.merge" (append . "common.pdb.tpl") -}} {{- end -}} {{- end -}}