fix: correct rendering condition of PDB

This commit is contained in:
Chi-En Wu
2020-04-23 17:05:37 +08:00
parent 9e1d01e371
commit b276dbc9da

View File

@ -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 -}}